-
Notifications
You must be signed in to change notification settings - Fork 229
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: support deleting BGP peer groups #8257
Conversation
commit-id:b75db8a1
Codecov Report
@@ Coverage Diff @@
## master #8257 +/- ##
============================================
- Coverage 74.58% 74.56% -0.02%
+ Complexity 43734 43727 -7
============================================
Files 3405 3405
Lines 169398 169402 +4
Branches 20229 20230 +1
============================================
- Hits 126341 126319 -22
- Misses 33490 33507 +17
- Partials 9567 9576 +9
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @arifogel)
projects/batfish/src/main/java/org/batfish/grammar/arista/AristaControlPlaneExtractor.java, line 3169 at r1 (raw file):
if (_currentAristaBgpNeighbor instanceof AristaBgpHasPeerGroup) { // clearing the peer group for a concrete neighbor. ((AristaBgpHasPeerGroup) _currentAristaBgpNeighbor).setPeerGroup(null);
Is this variation being tested someplace?
projects/batfish/src/main/java/org/batfish/grammar/arista/AristaControlPlaneExtractor.java, line 3173 at r1 (raw file):
assert _currentAristaBgpNeighbor instanceof AristaBgpPeerGroupNeighbor; _currentAristaBgpProcess.deletePeerGroup( ((AristaBgpPeerGroupNeighbor) _currentAristaBgpNeighbor).getName());
No warning to the user?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @arifogel)
projects/batfish/src/main/java/org/batfish/grammar/arista/AristaControlPlaneExtractor.java, line 3169 at r1 (raw file):
Previously, ratulm wrote…
Is this variation being tested someplace?
Already was implemented and tested.
projects/batfish/src/main/java/org/batfish/grammar/arista/AristaControlPlaneExtractor.java, line 3173 at r1 (raw file): Previously, ratulm wrote…
This is tricky. Turns out that Arista does not warn here - does not require the PG to be defined first. For example:
after which you get
|
commit-id:b75db8a1