-
Notifications
You must be signed in to change notification settings - Fork 18
frr: add VRRP support for leaf configuration #2035
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
base: main
Are you sure you want to change the base?
Conversation
Allow configuring arbitrary VRRP-managed IP addresses in the frr_leaf configuration via the new frr_vrrp_groups variable. This enables defining multiple VRRP groups with IPv4 and IPv6 addresses, priority, and preempt settings. AI-assisted: Claude Code Signed-off-by: Christian Berendt <[email protected]>
| interface {{ vrrp_group.interface }} | ||
| vrrp {{ vrrp_group.vrid }}{% if vrrp_group.ipv6 | default([]) | length > 0 %} version 3{% endif %} | ||
|
|
||
| {% if vrrp_group.priority | default(false) %} |
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.
actually the default should be 100 according to the comment above? better make this explicit instead of relying on FRR's default?
| {% if vrrp_group.priority | default(false) %} | ||
| vrrp {{ vrrp_group.vrid }} priority {{ vrrp_group.priority }} | ||
| {% endif %} | ||
| {% if vrrp_group.preempt | default(true) == false %} |
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.
missing | bool?
| ! | ||
| {% for vrrp_group in frr_vrrp_groups %} | ||
| interface {{ vrrp_group.interface }} | ||
| vrrp {{ vrrp_group.vrid }}{% if vrrp_group.ipv6 | default([]) | length > 0 %} version 3{% endif %} |
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.
version 3 is the default and can be used for both v4+v6, no need to add the extra logic
| # Example: | ||
| # frr_vrrp_groups: | ||
| # - interface: eth0 | ||
| # vrid: 10 |
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.
this name seems confusing to me, just id should be fine? otherwise vrrp_id?
|
|
||
| frr_extra_interfaces: [] | ||
|
|
||
| # VRRP configuration for leaf nodes |
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.
... for routers instead of leaf nodes?
| # priority: 100 # optional, default 100 | ||
| # preempt: true # optional, default true | ||
| # ipv4: | ||
| # - 192.168.1.1/24 |
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.
this parameter needs to be only the IP, no netmask
| # - 192.168.1.1/24 | ||
| # - 192.168.1.2/24 | ||
| # ipv6: # optional | ||
| # - 2001:db8::1/64 |
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.
dito
|
|
||
| frr_enable_bgpd: "yes" | ||
| frr_enable_bfdd: "no" | ||
| frr_enable_vrrpd: "no" |
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.
change this to "yes" automatically if frr_vrrp_groups is non-empty?
Allow configuring arbitrary VRRP-managed IP addresses in the frr_leaf configuration via the new frr_vrrp_groups variable. This enables defining multiple VRRP groups with IPv4 and IPv6 addresses, priority, and preempt settings.
AI-assisted: Claude Code