Skip to content

Commit

Permalink
Add graceful shutdown as BGP_WELL_KNOWN_STD_COMMUNITY (openconfig#954)
Browse files Browse the repository at this point in the history
* add graceful shutdown as BGP_WELL_KNOWN_STD_COMMUNITY
  • Loading branch information
dplore authored Sep 7, 2023
1 parent a6fd34d commit 98d48c3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
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 "5.4.0";
oc-ext:openconfig-version "5.5.0";

revision "2023-09-06" {
description
"Add GRACEFUL_SHUTDOWN as a BGP_WELL_KNOWN_STD_COMMUNITY";
reference "5.5.0";
}

revision "2023-03-31" {
description
Expand Down
18 changes: 17 additions & 1 deletion release/models/bgp/openconfig-bgp-types.yang
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ module openconfig-bgp-types {
policy. It can be imported by modules that make use of BGP
attributes";

oc-ext:openconfig-version "5.4.0";
oc-ext:openconfig-version "5.5.0";

revision "2023-09-06" {
description
"Add GRACEFUL_SHUTDOWN as a BGP_WELL_KNOWN_STD_COMMUNITY";
reference "5.5.0";
}

revision "2023-03-31" {
description
Expand Down Expand Up @@ -361,6 +367,16 @@ module openconfig-bgp-types {
reference "RFC3765";
}

identity GRACEFUL_SHUTDOWN {
base BGP_WELL_KNOWN_STD_COMMUNITY;
description
"An autonomous system which supports the graceful shutdown
receiver procedure receiving NLRI tagged with this community
will set LOCAL_PREF to a low value for those NLRI. This
community has a value of 0xFFFF0000.";
reference "RFC8326";
}

typedef bgp-session-direction {
type enumeration {
enum INBOUND {
Expand Down

0 comments on commit 98d48c3

Please sign in to comment.