diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2016-05-27 12:11:39 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2016-06-06 12:51:48 +0000 |
commit | dcbcc649b804347ecb8e9344efa5c6e6745488b7 (patch) | |
tree | c4d600f756f8653e4610b726695dfff3c459ffe4 /v3po/api/src/main/yang/v3po.yang | |
parent | d729c061cd56d6c46e7ba53e988356b67ad71ab6 (diff) |
Vlan alternative model
Change-Id: I0dcb535338495b4bb858adf2e2fe1b78cf85c498
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/api/src/main/yang/v3po.yang')
-rw-r--r-- | v3po/api/src/main/yang/v3po.yang | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/v3po/api/src/main/yang/v3po.yang b/v3po/api/src/main/yang/v3po.yang index c1210a923..86a2764b8 100644 --- a/v3po/api/src/main/yang/v3po.yang +++ b/v3po/api/src/main/yang/v3po.yang @@ -49,6 +49,7 @@ module v3po { } } + // todo remove from v3po typedef tag-rewrite-operation { type enumeration { enum disabled; @@ -149,6 +150,7 @@ module v3po { } } + // todo remove from v3po grouping sub-interface-base-attributes { leaf identifier { type uint32; @@ -322,7 +324,7 @@ module v3po { } } - grouping l2-attributes { + grouping l2-base-attributes { description "Parameters for configuring Layer2 features on interfaces."; @@ -365,9 +367,6 @@ module v3po { } } } - container vlan-tag-rewrite { // todo valid only for sub-interfaces - uses vlan-tag-rewrite-attributes; - } } augment /if:interfaces/if:interface { @@ -418,7 +417,11 @@ module v3po { must "(not (../if:ipv4[if:enabled = 'true']/if:address/if:ip) and " + "not (../if:ipv6[if:enabled = 'true']/if:address/if:ip))"; - uses l2-attributes; + uses l2-base-attributes; + + container vlan-tag-rewrite { + uses vlan-tag-rewrite-attributes; + } } container vxlan-gpe { @@ -511,7 +514,11 @@ module v3po { must "(not (../if:ipv4[if:enabled = 'true']/if:address/if:ip) and " + "not (../if:ipv6[if:enabled = 'true']/if:address/if:ip))"; - uses l2-attributes; + uses l2-base-attributes; + + container vlan-tag-rewrite { + uses vlan-tag-rewrite-attributes; + } } } |