Bug 6809: PMSI attribute's mandatory leaves are always enforced 88/46688/2
authorMilos Fabian <milfabia@cisco.com>
Thu, 29 Sep 2016 09:21:43 +0000 (11:21 +0200)
committerMilos Fabian <milfabia@cisco.com>
Fri, 7 Oct 2016 19:33:18 +0000 (19:33 +0000)
The PMSI Tunnel is an optional BGP path attribute.
Enforce the attribute's leaves presence only if the attribute is present in route's attributes.

Change-Id: Ifadf68ac30791614ed7695b940d3042cdca6aeb7
Signed-off-by: Milos Fabian <milfabia@cisco.com>
(cherry picked from commit 2c81d987ea7cdaad9b1dcb04c3591a8de2cd226f)

bgp/evpn/src/main/yang/pmsi-tunnel.yang

index 693c70950a108c52ac5414368d421e079af53f42..afd6d0382613d5ebac330326500d2298919368e6 100644 (file)
@@ -57,6 +57,7 @@ module pmsi-tunnel {
 
     grouping pmsi-tunnel {
         container pmsi-tunnel {
+            presence "PMSI Attribute";
             description "P-Multicast Service Interface Tunnel (PMSI Tunnel) attribute";
             reference "https://tools.ietf.org/html/rfc6514#section-5";