2 namespace "http://example.com/vlan";
5 import ietf-interfaces {
13 "RFC A YANG Data Model for Interface Management draft-ietf-netmod-interfaces-cfg-12 - Appendix C";
16 augment "/if:interfaces/if:interface" {
17 when "if:type = 'ethernetCsmacd' or
18 if:type = 'ieee8023adLag'";
25 augment "/if:interfaces/if:interface" {
26 when "if:type = 'l2vlan'";
29 type if:interface-ref;
30 must "/if:interfaces/if:interface[if:name = current()]"
31 + "/vlan:vlan-tagging = 'true'" {
33 "The base interface must have vlan tagging enabled.";
40 must "../base-interface" {
42 "If a vlan-id is defined, a base-interface must