Skip to content

Commit

Permalink
Add set-as-path BGP action and bgp-as-builtin-type to support replacing
Browse files Browse the repository at this point in the history
entire AS path.
  • Loading branch information
xuqma committed Nov 14, 2024
1 parent 6e28490 commit b8f43f3
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion release/models/bgp/openconfig-bgp-policy.yang
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ module openconfig-bgp-policy {
It augments the base routing-policy module with BGP-specific
options for conditions and actions.";

oc-ext:openconfig-version "7.1.0";
oc-ext:openconfig-version "8.2.0";

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

revision "2024-07-02" {
description
Expand Down Expand Up @@ -1348,6 +1355,18 @@ module openconfig-bgp-policy {
description "set the med metric attribute in the route
update";
}

leaf-list set-as-path {
type union {
type oc-inet:as-number;
type oc-bgp-types:bgp-as-builtin-type;
}
ordered-by user;
description
"set the entire AS path attribute in the route update,
with an ordered list of ASes that consists of AS numbers
or last-as.";
}
}

grouping bgp-actions-state {
Expand Down

0 comments on commit b8f43f3

Please sign in to comment.