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

TransferBDD: Avoid crashing on common idioms for setting communities #6812

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

millstein
Copy link
Contributor

Identifies expressions of the form (InputCommunities - E), which is common in the translation of config commands to set communities, and ignores them rather than crashing.

… Exp) in the translation of a community set expression
@batfish-bot
Copy link

This change is Reviewable

@millstein millstein requested a review from arifogel March 30, 2021 21:55
Copy link
Member

@arifogel arifogel left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@codecov
Copy link

codecov bot commented Mar 30, 2021

Codecov Report

Merging #6812 (cfe022b) into master (02c5d99) will decrease coverage by 1.52%.
The diff coverage is 33.33%.

@@             Coverage Diff              @@
##             master    #6812      +/-   ##
============================================
- Coverage     69.90%   68.38%   -1.53%     
+ Complexity    36295    35378     -917     
============================================
  Files          3031     3031              
  Lines        153564   153566       +2     
  Branches      18430    18430              
============================================
- Hits         107348   105015    -2333     
- Misses        37572    40110    +2538     
+ Partials       8644     8441     -203     
Impacted Files Coverage Δ Complexity Δ
...sh/minesweeper/bdd/SetCommunitiesVarCollector.java 68.75% <33.33%> (-2.68%) 8.00 <1.00> (+1.00) ⬇️
...mar/cisco_nxos/CiscoNxosControlPlaneExtractor.java 15.89% <0.00%> (-60.76%) 155.00% <0.00%> (-915.00%)
...src/main/java/org/batfish/coordinator/PoolMgr.java 59.52% <0.00%> (-1.20%) 15.00% <0.00%> (-1.00%)
...src/main/java/org/batfish/coordinator/WorkMgr.java 75.81% <0.00%> (-0.16%) 247.00% <0.00%> (-1.00%)
...tfish/representation/cisco/CiscoConfiguration.java 84.50% <0.00%> (-0.15%) 417.00% <0.00%> (-1.00%)

@millstein millstein merged commit 162d00d into master Mar 30, 2021
@millstein millstein deleted the srp-input-communities branch March 30, 2021 22:27
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