1 // vi: set smarttab et sw=4 tabstop=4:
4 namespace "urn:opendaylight:params:xml:ns:yang:pmsi-tunnel";
7 import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
8 import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
9 import network-concepts { prefix netc; revision-date 2013-11-25; }
10 import ietf-yang-types { prefix yang; }
11 import bgp-rib { prefix bgp-rib; revision-date 2018-03-29; }
12 import yang-ext { prefix ext; revision-date 2013-07-09; }
14 organization "AT&T Services, Inc.";
16 contact "Bruce Brandon <bb2697@att.com>";
19 "This module contains the data model of a BGP attribute called the
20 P-Multicast Service Interface Tunnel (PMSI Tunnel), defined
21 in RFC6514, Section 5.
23 Copyright (c)2016 AT&T Services, Inc. All rights reserved.;
25 This program and the accompanying materials are made available
26 under the terms of the Eclipse Public License v1.0 which
27 accompanies this distribution, and is available at
28 http://www.eclipse.org/legal/epl-v10.html";
30 revision "2018-03-29" {
31 description "Add RFC6514 Extended communities under bgp type.";
34 revision "2016-08-12" {
35 description "Initial revision";
36 reference "https://tools.ietf.org/html/rfc6514#section-5";
39 typedef pmsi-tunnel-type {
41 enum rsvp-te-p2mp-lsp {
56 enum ingress-replication {
70 leaf opaque-extended-type {
79 grouping p-address-p-multicast-group {
84 leaf p-multicast-group {
90 grouping pmsi-tunnel {
91 container pmsi-tunnel {
92 presence "PMSI Attribute";
93 description "P-Multicast Service Interface Tunnel (PMSI Tunnel) attribute";
94 reference "https://tools.ietf.org/html/rfc6514#section-5";
96 leaf leaf-information-required {
101 type netc:mpls-label;
103 choice tunnel-identifier {
104 case rsvp-te-p2mp-lsp {
105 container rsvp-te-p2mp-lsp {
106 reference "https://tools.ietf.org/html/rfc4875#section-19.1.1";
115 leaf extended-tunnel-id {
117 type inet:ip-address;
122 container mldp-p2mp-lsp {
123 reference "https://tools.ietf.org/html/rfc6388#section-2.2";
124 leaf address-family {
127 base bgp-t:address-family;
130 leaf root-node-address {
132 type inet:ip-address;
140 container pim-ssm-tree {
141 reference "https://tools.ietf.org/html/rfc6514#section-5";
142 uses p-address-p-multicast-group;
146 container pim-sm-tree {
147 reference "https://tools.ietf.org/html/rfc6514#section-5";
148 uses p-address-p-multicast-group;
151 case bidir-pim-tree {
152 container bidir-pim-tree {
153 reference "https://tools.ietf.org/html/rfc6514#section-5";
154 uses p-address-p-multicast-group;
157 case ingress-replication {
158 container ingress-replication {
159 leaf receiving-endpoint-address {
160 type inet:ip-address;
164 case mldp-mp2mp-lsp {
165 container mldp-mp2mp-lsp {
173 augment "/bgp-msg:update/bgp-msg:attributes" {
177 grouping bgp-rib-route {
179 augment "attributes" {
180 ext:augment-identifier pmsi-tunnel-augmentation;