Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use RE2 for yang mac-address parsing #593

Merged
merged 15 commits into from
Feb 5, 2022
Merged

Use RE2 for yang mac-address parsing #593

merged 15 commits into from
Feb 5, 2022

Conversation

pudelkoM
Copy link
Member

@pudelkoM pudelkoM commented Mar 26, 2021

Addressed issues:

  • ::google::protobuf::uint64 -> uint64
  • <regex> -> RE2
  • make YangStringToMacAddress safer
  • comments
  • style

This PR also fixes things introduces in commit 6e71349.

@codecov
Copy link

codecov bot commented Mar 26, 2021

Codecov Report

Merging #593 (a2774c1) into main (08d0835) will decrease coverage by 0.00%.
The diff coverage is 96.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #593      +/-   ##
==========================================
- Coverage   79.17%   79.17%   -0.01%     
==========================================
  Files         339      339              
  Lines       30915    30909       -6     
==========================================
- Hits        24477    24471       -6     
  Misses       6438     6438              
Impacted Files Coverage Δ
stratum/hal/lib/common/utils.h 100.00% <ø> (ø)
stratum/hal/lib/common/utils.cc 80.13% <90.00%> (-0.27%) ⬇️
stratum/hal/lib/common/yang_parse_tree_paths.cc 83.50% <100.00%> (-0.02%) ⬇️

@pudelkoM pudelkoM force-pushed the yang-tree-cleanup branch 5 times, most recently from f0d0a1b to 05bc3b7 Compare April 6, 2021 21:58
@@ -1343,7 +1339,7 @@ void SetUpInterfacesInterfaceEthernetConfigMacAddress(uint64 node_id,
return status;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like RETURN_IF_ERROR, but check other places.

@pudelkoM pudelkoM force-pushed the yang-tree-cleanup branch 3 times, most recently from 7bf6f9b to 91542d7 Compare April 8, 2021 16:37
@bocon13 bocon13 added this to the 2021-09 Release milestone Jul 15, 2021
@pudelkoM pudelkoM changed the title Cleanup code around yang path mac-address Use RE2 for yang mac-address parsing Feb 4, 2022
@pudelkoM pudelkoM merged commit 6b1c3d1 into main Feb 5, 2022
@pudelkoM pudelkoM deleted the yang-tree-cleanup branch February 5, 2022 03:18
ffoulkes added a commit to ipdk-io/stratum-dev that referenced this pull request Jan 17, 2024
Signed-off-by: Derek G Foster <derek.foster@intel.com>
ffoulkes added a commit to ipdk-io/stratum-dev that referenced this pull request Jan 17, 2024
Signed-off-by: Derek G Foster <derek.foster@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants