Skip to content

Commit

Permalink
Add set-as-path-prepend/use-last-as to support prepeding last AS to A…
Browse files Browse the repository at this point in the history
…S path. (#1221)
  • Loading branch information
xuqma authored Dec 20, 2024
1 parent f01a86d commit 850e572
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions release/models/bgp/openconfig-bgp-policy.yang
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ module openconfig-bgp-policy {
It augments the base routing-policy module with BGP-specific
options for conditions and actions.";

oc-ext:openconfig-version "8.0.0";
oc-ext:openconfig-version "8.1.0";

revision "2024-11-13" {
description
"Add use-last-as leaf to set-as-path-prepend to prepend last AS.";
reference "8.1.0";
}

revision "2024-08-23" {
description
Expand Down Expand Up @@ -920,9 +926,19 @@ module openconfig-bgp-policy {
leaf asn {
type oc-inet:as-number;
description
"The AS number to prepend to the AS path. If this leaf is
not specified and repeat-n is set, then the local AS
number will be used for prepending.";
"The AS number to prepend to the AS path. If neither this
leaf nor use-last-as leaf is specified but repeat-n is set, then
the local AS number will be used for prepending.";
}

leaf use-last-as {
type boolean;
description
"Indicates whether to use the last AS number, which is also the
most recent AS number, to prepend to the AS path.
If neither this leaf nor asn leaf is specified
but repeat-n is set, then the local AS number will be
used for prepending.";
}
}

Expand Down

0 comments on commit 850e572

Please sign in to comment.