--- /dev/null
+module bgp-epe {
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:bgp-epe";
+ prefix "bgp-epe";
+
+ import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
+
+ organization "Cisco Systems, Inc.";
+ contact "Milos Fabian <milfabia@cisco.com>";
+
+ description
+ "This module contains the base data concepts contained
+ in draft-ietf-idr-bgpls-segment-routing-epe-00.
+
+ Copyright (c)2015 Cisco Systems, Inc. All rights reserved.
+
+ This program and the accompanying materials are made available
+ under the terms of the Eclipse Public License v1.0 which
+ accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html";
+
+ revision "2015-06-22" {
+ description
+ "Initial revision.";
+ }
+
+ grouping epe-node-descriptors {
+ reference "https://tools.ietf.org/html/draft-ietf-idr-bgpls-segment-routing-epe-00#section-4.1";
+ leaf bgp-router-id {
+ description "BGP Router Identifier.";
+ type inet:ipv4-address;
+ }
+
+ leaf member-asn {
+ description "Confederation Member ASN.";
+ type inet:as-number;
+ }
+ }
+}
\ No newline at end of file
import network-concepts { prefix netc; revision-date 2013-11-25; }
import rsvp { prefix rsvp; revision-date 2013-08-20; }
import bgp-segment-routing { prefix bgp-sr; revision-date 2015-02-06; }
+ import bgp-epe { prefix bgp-epe; revision-date 2015-06-22; }
organization "Cisco Systems, Inc.";
contact "Dana Kutenicsova <dkutenic@cisco.com>";
enum static {
value 5;
}
+ enum bgp-epe {
+ reference "https://tools.ietf.org/html/draft-ietf-idr-bgpls-segment-routing-epe-00#section-4";
+ value 7;
+ }
}
}
}
container remote-node-descriptors {
uses node-identifier;
+ uses bgp-epe:epe-node-descriptors;
}
container link-descriptors {
uses link-identifier;
+ uses bgp-epe:epe-node-descriptors;
}
}
case prefix-case {
container sr-lan-adj-id {
uses bgp-sr:lan-adjacency-segment-identifier;
}
+ container peer-sid {
+ description "The SID representing the peer of the BGP session.";
+ reference "https://tools.ietf.org/html/draft-ietf-idr-bgpls-segment-routing-epe-00#section-4.3";
+ uses bgp-sr:adjacency-segment-identifier;
+ }
+ container peer-set-sid {
+ description "The SID representing the group the peer is part of.";
+ reference "https://tools.ietf.org/html/draft-ietf-idr-bgpls-segment-routing-epe-00#section-4.3";
+ uses bgp-sr:adjacency-segment-identifier;
+ }
}
typedef route-tag {