summaryrefslogtreecommitdiffstats
path: root/v3po/api
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-10-31 12:04:10 +0100
committerMarek Gradzki <mgradzki@cisco.com>2016-10-31 12:11:26 +0100
commitaf201b3a66219b74b684c91895bce30189ccb245 (patch)
treee239e3cada8fa2967a843ff4dd6797a895753da7 /v3po/api
parent44a7ba7788145842aadd11763f32c05a0badfb45 (diff)
Update l2 constaint in v3po.yang
Permit BVI interface to have IP address assigned Change-Id: I86f39b1e07fa00f05328e293377e0b84c23ebe1a Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/api')
-rw-r--r--v3po/api/src/main/yang/v3po.yang13
1 files changed, 8 insertions, 5 deletions
diff --git a/v3po/api/src/main/yang/v3po.yang b/v3po/api/src/main/yang/v3po.yang
index a5ccec5f9..6d6d58df9 100644
--- a/v3po/api/src/main/yang/v3po.yang
+++ b/v3po/api/src/main/yang/v3po.yang
@@ -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;
}