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

IpOwners: only consider HSRP interfaces with L3 addresses #6349

Merged
merged 2 commits into from Oct 21, 2020

Conversation

dhalperi
Copy link
Member

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750x_3560x/software/release/12-2_55_se/configuration/guide/3750xscg/swhsrp.html

All Layer 3 interfaces must have IP addresses assigned to them.

Downstream code in IpOwners chooses an HSRP master with tiebreak
based on L3 IPs, which could crash in some scenarios (multiple
interfaces with equal priority, at least one of which had no
IP.)

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750x_3560x/software/release/12-2_55_se/configuration/guide/3750xscg/swhsrp.html

> All Layer 3 interfaces must have IP addresses assigned to them.

Downstream code in IpOwners chooses an HSRP master with tiebreak
based on L3 IPs, which could crash in some scenarios (multiple
interfaces with equal priority, at least one of which had no
IP.)
@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.

:lgtm:

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

@codecov
Copy link

codecov bot commented Oct 21, 2020

Codecov Report

Merging #6349 into master will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #6349      +/-   ##
============================================
- Coverage     72.97%   72.95%   -0.02%     
+ Complexity    35102    35093       -9     
============================================
  Files          2828     2828              
  Lines        142611   142614       +3     
  Branches      17138    17140       +2     
============================================
- Hits         104065   104050      -15     
- Misses        30324    30333       +9     
- Partials       8222     8231       +9     
Impacted Files Coverage Δ Complexity Δ
...ain/java/org/batfish/common/topology/IpOwners.java 94.56% <100.00%> (+0.09%) 76.00 <0.00> (+2.00)
.../org/batfish/dataplane/rib/RouteAdvertisement.java 83.67% <0.00%> (-4.09%) 18.00% <0.00%> (-1.00%)
...ain/java/org/batfish/symbolic/IngressLocation.java 65.78% <0.00%> (-2.64%) 15.00% <0.00%> (-1.00%)
...col/src/main/java/org/batfish/role/InferRoles.java 89.54% <0.00%> (-1.37%) 50.00% <0.00%> (-1.00%)
...main/java/org/batfish/datamodel/acl/AclTracer.java 60.37% <0.00%> (-1.26%) 43.00% <0.00%> (-1.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.56% <0.00%> (-0.47%) 245.00% <0.00%> (-2.00%)
...java/org/batfish/dataplane/ibdp/VirtualRouter.java 90.54% <0.00%> (-0.34%) 208.00% <0.00%> (-1.00%)
...a/org/batfish/representation/aws/LoadBalancer.java 82.18% <0.00%> (-0.32%) 70.00% <0.00%> (-1.00%)

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.

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

@dhalperi dhalperi merged commit 4ba57c8 into batfish:master Oct 21, 2020
@dhalperi dhalperi deleted the hsrp-patch branch October 21, 2020 19:28
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