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 bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
9 import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
10 import network-concepts { prefix netc; revision-date 2013-11-25; }
11 import ietf-yang-types { prefix yang; }
12 import bgp-rib { prefix bgp-rib; revision-date 2018-03-29; }
13 import yang-ext { prefix ext; revision-date 2013-07-09; }
15 organization "AT&T Services, Inc.";
17 contact "Bruce Brandon <bb2697@att.com>";
20 "This module contains the data model of a BGP attribute called the
21 P-Multicast Service Interface Tunnel (PMSI Tunnel), defined
22 in RFC6514, Section 5.
24 Copyright (c)2016 AT&T Services, Inc. All rights reserved.;
26 This program and the accompanying materials are made available
27 under the terms of the Eclipse Public License v1.0 which
28 accompanies this distribution, and is available at
29 http://www.eclipse.org/legal/epl-v10.html";
31 revision "2018-03-29" {
32 description "Add RFC6514 Extended communities under bgp type.";
35 revision "2016-08-12" {
36 description "Initial revision";
37 reference "https://tools.ietf.org/html/rfc6514#section-5";
40 typedef pmsi-tunnel-type {
42 enum rsvp-te-p2mp-lsp {
57 enum ingress-replication {
71 leaf opaque-extended-type {
80 grouping p-address-p-multicast-group {
83 type inet:ip-address-no-zone;
85 leaf p-multicast-group {
87 type inet:ip-address-no-zone;
91 grouping pmsi-tunnel {
92 container pmsi-tunnel {
93 presence "PMSI Attribute";
94 description "P-Multicast Service Interface Tunnel (PMSI Tunnel) attribute";
95 reference "https://tools.ietf.org/html/rfc6514#section-5";
97 leaf leaf-information-required {
102 type netc:mpls-label;
104 choice tunnel-identifier {
105 case rsvp-te-p2mp-lsp {
106 container rsvp-te-p2mp-lsp {
107 reference "https://tools.ietf.org/html/rfc4875#section-19.1.1";
116 leaf extended-tunnel-id {
118 type inet:ip-address-no-zone;
123 container mldp-p2mp-lsp {
124 reference "https://tools.ietf.org/html/rfc6388#section-2.2";
125 leaf address-family {
128 base bgp-t:address-family;
131 leaf root-node-address {
133 type inet:ip-address-no-zone;
141 container pim-ssm-tree {
142 reference "https://tools.ietf.org/html/rfc6514#section-5";
143 uses p-address-p-multicast-group;
147 container pim-sm-tree {
148 reference "https://tools.ietf.org/html/rfc6514#section-5";
149 uses p-address-p-multicast-group;
152 case bidir-pim-tree {
153 container bidir-pim-tree {
154 reference "https://tools.ietf.org/html/rfc6514#section-5";
155 uses p-address-p-multicast-group;
158 case ingress-replication {
159 container ingress-replication {
160 leaf receiving-endpoint-address {
161 type inet:ip-address-no-zone;
165 case mldp-mp2mp-lsp {
166 container mldp-mp2mp-lsp {
174 augment "/bgp-msg:update/bgp-msg:attributes" {
178 grouping bgp-rib-route {
180 augment "attributes" {
181 ext:augment-identifier pmsi-tunnel-augmentation;