-
Notifications
You must be signed in to change notification settings - Fork 705
Local-as refactoring and extension #1508
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: master
Are you sure you want to change the base?
Changes from all commits
3501335
4437a93
8cc5282
ead8f31
ee7d45e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,13 +24,21 @@ submodule openconfig-bgp-common { | |
| may be application to a subset of global, peer-group or neighbor | ||
| contexts."; | ||
|
|
||
| oc-ext:openconfig-version "9.9.1"; | ||
| oc-ext:openconfig-version "9.10.0"; | ||
|
|
||
| revision "2026-06-16" { | ||
| description | ||
| "Deprecation of ../config/local-as leaf and replacement with | ||
| local-as-options container. Extending with RFC7705 no-prepend | ||
| and replace-as explicit flags and dual-as option."; | ||
| reference "9.10.0"; | ||
| } | ||
|
|
||
| revision "2025-04-18" { | ||
| description | ||
| "Clarification to usage of link-bandwidth-ext-community | ||
| container under BGP use-multiple-paths`."; | ||
| reference "9.9.1"; | ||
| reference "9.9.1"; | ||
| } | ||
|
|
||
| revision "2025-03-30" { | ||
|
|
@@ -279,6 +287,55 @@ submodule openconfig-bgp-common { | |
| } | ||
| } | ||
|
|
||
| grouping bgp-local-as-group-config { | ||
| description | ||
| "Local-AS configuration items. | ||
| Local-AS is a migration tool described in RFC7705"; | ||
|
|
||
| leaf local-as { | ||
| type oc-inet:as-number; | ||
| description | ||
| "The local autonomous system number that is to be used | ||
| when establishing sessions with the remote peer or peer | ||
| group, if this differs from the global BGP router | ||
| autonomous system number. Value is set in My Autonomous | ||
| System of the OPEN message sent to establish session."; | ||
| reference | ||
| "RFC7705: Autonomous System Migration Mechanisms | ||
| and Their Effects on the BGP AS_PATH Attribute. | ||
| Section 3.1 - Modify Inbound BGP AS_PATH Attribute"; | ||
| } | ||
|
|
||
| leaf no-prepend { | ||
| type boolean; | ||
| description | ||
| "When set to TRUE, the value configured as local-as is | ||
| not prepended to AS-PATH on received routes."; | ||
| reference | ||
| "RFC7705: Autonomous System Migration Mechanisms | ||
| and Their Effects on the BGP AS_PATH Attribute. | ||
| Section 3.1 - Modify Inbound BGP AS_PATH Attribute"; | ||
| } | ||
|
rszarecki marked this conversation as resolved.
|
||
|
|
||
| leaf replace-as { | ||
| type boolean; | ||
| description | ||
| "When set to TRUE, the global AS is not added to AS-PATH | ||
| when route is advertised to peer. Only local-as is prepended."; | ||
| reference | ||
| "RFC7705: Autonomous System Migration Mechanisms | ||
| and Their Effects on the BGP AS_PATH Attribute. | ||
| Section 3.2 - Modify Outbound BGP AS_PATH Attribute"; | ||
| } | ||
|
|
||
| leaf dual-as { | ||
| type boolean; | ||
| description | ||
| "When set to TRUE, the speaker alternates between local-ASN | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TMK - the speaker does not alternate but rather this should allow for accepting OPEN messages from peers presenting either the local or global ASN
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correction: https://datatracker.ietf.org/doc/html/rfc7705#section-4.2 |
||
| and global ASN in every other OPEN messages."; | ||
| } | ||
|
rszarecki marked this conversation as resolved.
|
||
| } | ||
|
|
||
| grouping bgp-common-neighbor-group-config { | ||
| description | ||
| "Neighbor level configuration items."; | ||
|
|
@@ -291,6 +348,7 @@ submodule openconfig-bgp-common { | |
|
|
||
| leaf local-as { | ||
| type oc-inet:as-number; | ||
| status deprecated; | ||
| description | ||
| "The local autonomous system number that is to be used | ||
| when establishing sessions with the remote peer or peer | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.