Skip to content

Commit

Permalink
Updates to the ES model to allow the configuration of an ES-import ro…
Browse files Browse the repository at this point in the history
…ute target (#1109)

* Add a new leaf "es-import-route-target" to the Ethernet Segment config
  model to allow the explicit configuration of an ES-import route target
  as per RFC7432 Section 7.6
  • Loading branch information
abamberger-arista authored Oct 22, 2024
1 parent b0ef779 commit 881b9e6
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions release/models/ethernet-segments/openconfig-ethernet-segments.yang
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module openconfig-ethernet-segments {

import openconfig-extensions { prefix oc-ext; }
import openconfig-interfaces { prefix oc-if; }
import openconfig-yang-types { prefix oc-yang-types; }
import openconfig-evpn-types { prefix oc-evpn-types; }

// meta
Expand All @@ -23,7 +24,13 @@ module openconfig-ethernet-segments {
The ethernet segments are used in EVPN services are
defined for the whole device";

oc-ext:openconfig-version "0.1.0";
oc-ext:openconfig-version "0.2.0";

revision "2024-09-06" {
description
"Added ability to configure an explicit es-import-route-target for an ES";
reference "0.2.0";
}

revision "2021-06-28" {
description
Expand Down Expand Up @@ -199,6 +206,17 @@ grouping evpn-ethernet-segment-df-config {
"RFC 7432: BGP MPLS-Based Ethernet VPN";
}

leaf es-import-route-target {
type oc-yang-types:mac-address;
description
"Received ES routes with an ES-Import extended community set to this value
are imported into this ethernet segment. When configured by a user, the
es-import-route-target will be used, otherwise the system automatically
derives the value used by following the procedures in RFC 7432 Section 7.6.";
reference
"RFC 7432: BGP MPLS-Based Ethernet VPN Section 7.6";
}

uses oc-if:interface-ref-common;
}

Expand Down Expand Up @@ -247,4 +265,4 @@ grouping evpn-ethernet-segment-df-config {

uses evpn-ethernet-segment-top;

}
}

0 comments on commit 881b9e6

Please sign in to comment.