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

Arista: add set tag and a test of route-map with continue #6466

Merged
merged 2 commits into from
Dec 2, 2020

Conversation

dhalperi
Copy link
Member

@dhalperi dhalperi commented Dec 2, 2020

No description provided.

@batfish-bot
Copy link

This change is Reviewable

Copy link
Contributor

@progwriter progwriter left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 4 files at r1.
Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @arifogel, @dhalperi, and @progwriter)


projects/batfish/src/test/java/org/batfish/grammar/arista/AristaGrammarTest.java, line 2420 at r1 (raw file):

30 match metric 3

how do I read this? nothing in the route map matches (or sets) the metric to 3

Copy link
Contributor

@progwriter progwriter left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 4 files at r1, 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @arifogel and @dhalperi)


projects/batfish/src/test/java/org/batfish/grammar/arista/AristaGrammarTest.java, line 2420 at r1 (raw file):

Previously, progwriter (Victor Heorhiadi) wrote…
30 match metric 3

how do I read this? nothing in the route map matches (or sets) the metric to 3

I think I got it, nvm


projects/batfish/src/test/resources/org/batfish/grammar/arista/testconfigs/arista_route_map_exhaustive, line 19 at r2 (raw file):

route-map RM deny 30
 match ip address pl30
 set metric 10

should this be set metric 30? otherwise asserts in the test are trivial. and I'm guessing you want to test set isn't executed on deny

Copy link
Member Author

@dhalperi dhalperi left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 4 files reviewed, all discussions resolved (waiting on @arifogel and @progwriter)


projects/batfish/src/test/java/org/batfish/grammar/arista/AristaGrammarTest.java, line 2420 at r1 (raw file):

Previously, progwriter (Victor Heorhiadi) wrote…

I think I got it, nvm

Removed, stale.


projects/batfish/src/test/resources/org/batfish/grammar/arista/testconfigs/arista_route_map_exhaustive, line 19 at r2 (raw file):

Previously, progwriter (Victor Heorhiadi) wrote…

should this be set metric 30? otherwise asserts in the test are trivial. and I'm guessing you want to test set isn't executed on deny

Yes, thanks.

Copy link
Contributor

@progwriter progwriter 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 r3.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @arifogel)

@codecov
Copy link

codecov bot commented Dec 2, 2020

Codecov Report

Merging #6466 (8167d23) into master (d8b563d) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #6466      +/-   ##
============================================
+ Coverage     73.19%   73.28%   +0.09%     
- Complexity    35415    35449      +34     
============================================
  Files          2820     2821       +1     
  Lines        143312   143320       +8     
  Branches      17306    17306              
============================================
+ Hits         104896   105031     +135     
+ Misses        30101    29960     -141     
- Partials       8315     8329      +14     
Impacted Files Coverage Δ Complexity Δ
...sh/grammar/arista/AristaControlPlaneExtractor.java 34.99% <100.00%> (+0.89%) 612.00 <1.00> (+10.00)
...fish/representation/arista/RouteMapSetTagLine.java 100.00% <100.00%> (ø) 2.00 <2.00> (?)
...col/src/main/java/org/batfish/role/InferRoles.java 90.90% <0.00%> (-1.82%) 51.00% <0.00%> (-2.00%)
...src/main/java/org/batfish/coordinator/PoolMgr.java 59.52% <0.00%> (-1.20%) 15.00% <0.00%> (-1.00%)
...a/org/batfish/representation/aws/LoadBalancer.java 82.18% <0.00%> (-0.32%) 70.00% <0.00%> (-1.00%)
...tfish/representation/cisco/CiscoConfiguration.java 86.09% <0.00%> (-0.14%) 497.00% <0.00%> (-1.00%)
...ish/representation/arista/AristaConfiguration.java 58.07% <0.00%> (+3.60%) 175.00% <0.00%> (+12.00%)
.../batfish/representation/arista/RouteMapClause.java 79.16% <0.00%> (+8.33%) 9.00% <0.00%> (+1.00%)
... and 5 more

@dhalperi dhalperi merged commit d6ed45b into batfish:master Dec 2, 2020
@dhalperi dhalperi deleted the set-tag branch December 2, 2020 02:42
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