-
Notifications
You must be signed in to change notification settings - Fork 659
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
Add Bfd diagnostic code for when neighbor signaled session down. #1233
base: master
Are you sure you want to change the base?
Conversation
@@ -157,35 +164,41 @@ module openconfig-bfd { | |||
"The BFD echo function failed - echo packets have not been | |||
received for the required period of time."; | |||
} | |||
enum FORWARDING_RESET { | |||
enum NEIGHBOR_DOWN { |
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.
To keep this as a non-breaking change, the original ordering of the enums must be preserved. You can only add enums to the list.
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 realize the enum value won't match the value in a packet on the wire, but that is not required.
I moved NEIGHBOR_DOWN to the end of the enums list. Thanks. |
I would like to propose deprecating the bfd-diagnostic-code enum and creating a new enum, perhaps called rfc5880-bfd-diagnostic-code. The bfd-diagnostic-code enum is missing “Neighbor Signaled Session Down” diag, as specified in RFC5880: A diagnostic code specifying the local system's reason for the
The objection to adding this diagnostic code to enum value 3 is that it would be a breaking change. However adding it to the end of the enum would not only make Neighbor Down not compliant, but also all of the enum values after 3 differ in relation to the RFC. This adds operational complexity since clients now need a parser to map between the RFC codes and OC public codes. By adding a new enum for the diag codes, we could support the RFC compliant values. And each vendor can decide which leaf they want to support for now. |
Change Scope
I have added a Bfd diagnostic code for when neighbor signals session down. This is specified in RFC5880 but is absent from the public model.
From RFC5880: