Update l2 constaint in v3po.yang 36/3636/1
authorMarek Gradzki <mgradzki@cisco.com>
Mon, 31 Oct 2016 11:04:10 +0000 (12:04 +0100)
committerMarek Gradzki <mgradzki@cisco.com>
Mon, 31 Oct 2016 11:11:26 +0000 (12:11 +0100)
Permit BVI interface to have IP address assigned

Change-Id: I86f39b1e07fa00f05328e293377e0b84c23ebe1a
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
v3po/api/src/main/yang/v3po.yang

index a5ccec5..6d6d58d 100644 (file)
@@ -7,7 +7,8 @@ module v3po {
     description
       "This revision adds the following new features:
        - ingress/egress ACLs support
-       - moved ACL definitions to vpp-acl module";
+       - moved ACL definitions to vpp-acl module
+       - updated l2 container constraint (permit IP address on BVI interface)";
   }
 
   revision "2015-01-05" {
@@ -462,8 +463,9 @@ module v3po {
     }
 
     container l2 {
-      must "(not (../if:ipv4[if:enabled = 'true']/if:address/if:ip) and " +
-      "not (../if:ipv6[if:enabled = 'true']/if:address/if:ip))";
+      must "bridged-virtual-interface = 'true' or " +
+           "(not (../if:ipv4[if:enabled = 'true']/if:address/if:ip) and " +
+           "not (../if:ipv6[if:enabled = 'true']/if:address/if:ip))";
 
       uses l2-base-attributes;
     }
@@ -558,8 +560,9 @@ module v3po {
     }
 
     container l2 {
-      must "(not (../if:ipv4[if:enabled = 'true']/if:address/if:ip) and " +
-      "not (../if:ipv6[if:enabled = 'true']/if:address/if:ip))";
+      must "bridged-virtual-interface = 'true' or " +
+           "(not (../if:ipv4[if:enabled = 'true']/if:address/if:ip) and " +
+           "not (../if:ipv6[if:enabled = 'true']/if:address/if:ip))";
 
       uses l2-base-attributes;
     }