-
Notifications
You must be signed in to change notification settings - Fork 1
Add bfd settings to Interface resource
#139
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: nx/bgw
Are you sure you want to change the base?
Conversation
86d05e5 to
2b5f774
Compare
184f939 to
b35c016
Compare
b35c016 to
e484e01
Compare
9f028d8 to
c9fa40e
Compare
e484e01 to
c4225a1
Compare
c4225a1 to
053ec42
Compare
See also: https://github.com/openconfig/public/blob/master/release/models/bfd/openconfig-bfd.yang Co-Authored-By: Claude <noreply@anthropic.com>
Instead the enablement of bfd for the link is implicitly inferred from the `.spec.bfd.enabled` on the referenced `Interface`.
This patch adds support for automatically disabling icmp redirects on IPv4 links that are running BFD sessions, equivalent to the configuration of: ``` interface Ethernet1/1 no ip redirects ```
This patch automatically infers the configuration for bfd on an ospf link according to the following config based on the `.spec.bfd.enabled` field in the `Interface` resource. ``` interface Ethernet1/1 ip ospf bfd ```
053ec42 to
09abac5
Compare
| // BFD defines the Bidirectional Forwarding Detection configuration for the interface. | ||
| // BFD is only applicable for Layer 3 interfaces (Physical, Loopback, RoutedVLAN). | ||
| // +optional | ||
| BFD *BFD `json:"bfd,omitempty"` |
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.
I was checkingOpenConfig's and they do it differently. We could follow their approach, which would have the advantage of reducing the number of gNMI calls (on cisco nxos, as far as we know). However, this definition here seems more natural to me. Do you have any idea why they decided that structure instead? (just curious)
No description provided.