Skip to content

Commit

Permalink
use ip4 for bgp community ip-type
Browse files Browse the repository at this point in the history
  • Loading branch information
dplore committed Jan 13, 2024
1 parent 0fdea9e commit fb2ffc3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
10 changes: 5 additions & 5 deletions release/models/bgp/openconfig-bgp-policy.yang
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ module openconfig-bgp-policy {

oc-ext:openconfig-version "6.4.0";

revision "2023-12-26" {
revision "2024-01-12" {
description
"Add strongly typed bgp extended communities. Deprecate
string typed extended bgp communities.";
"Introduce structured BGP communities and add link bandwidth extended
community type. Deprecate string based community types.";
reference "6.4.0";
}

Expand Down Expand Up @@ -1014,8 +1014,8 @@ grouping ext-community-asn4-type-config {

grouping ext-community-ip-type-config {
description "Grouping for ip-type extended community config.";
leaf ip-address {
type oc-inet:ip-address;
leaf ipv4-address {
type oc-inet:ipv4-address;
description "IPv4 Address for the community.";
}

Expand Down
11 changes: 5 additions & 6 deletions release/models/bgp/openconfig-bgp-types.yang
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ module openconfig-bgp-types {

oc-ext:openconfig-version "5.6.0";

revision "2023-12-26" {
revision "2024-01-12" {
description
"Add link bandwidth extended community type";
"Introduce structured BGP communities and add link bandwidth extended
community type. Deprecate string based community types.";
reference "5.6.0";
}

Expand Down Expand Up @@ -411,10 +412,7 @@ module openconfig-bgp-types {


typedef bgp-std-community-type {
// TODO: further refine restrictions and allowed patterns
// 4-octet value:
// <as number> 2 octets
// <community value> 2 octets
status deprecated;
type union {
type uint32 {
// per RFC 1997, 0x00000000 - 0x0000FFFF and 0xFFFF0000 -
Expand All @@ -439,6 +437,7 @@ module openconfig-bgp-types {
}

typedef bgp-ext-community-type {
status deprecated;
type union {
type string {
// Type 1: 2-octet global and 4-octet local
Expand Down

0 comments on commit fb2ffc3

Please sign in to comment.