Skip to content
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

New set-as-path BGP action, and support last AS for for setting AS path. #1148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion release/models/bgp/openconfig-bgp-errors.yang
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ submodule openconfig-bgp-errors {
"This module defines BGP NOTIFICATION message error codes
and subcodes";

oc-ext:openconfig-version "6.1.0";
oc-ext:openconfig-version "6.2.0";

revision "2025-01-03" {
description
"Add new bgp-as-builtin-type to support last AS for set-as-path action";
reference "6.2.0";
}

revision "2024-09-06" {
description
Expand Down
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 "8.1.0";
oc-ext:openconfig-version "8.2.0";
dplore marked this conversation as resolved.
Show resolved Hide resolved

revision "2025-01-03" {
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-11-13" {
description
Expand Down Expand Up @@ -1404,6 +1411,18 @@ module openconfig-bgp-policy {
"When set-med is specified, this leaf is mandatory to set the
appropriate action on the MED metric value.";
}

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
21 changes: 20 additions & 1 deletion release/models/bgp/openconfig-bgp-types.yang
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ module openconfig-bgp-types {
policy. It can be imported by modules that make use of BGP
attributes";

oc-ext:openconfig-version "6.1.0";
oc-ext:openconfig-version "6.2.0";

revision "2025-01-03" {
description
"Add new bgp-as-builtin-type to support last AS for set-as-path action";
reference "6.2.0";
}

revision "2024-09-06" {
description
Expand Down Expand Up @@ -841,4 +847,17 @@ module openconfig-bgp-types {
description
"Defines the types of BGP AS path segments.";
}

typedef bgp-as-builtin-type {
type enumeration {
enum LAST {
description
"The last AS in the AS path, which is also the most recent
AS added to the path.";
}
}
description
"Type definition for specifying the built in AS types
that can be used for setting AS path actions.";
}
}
Loading