blob: 644b8904697064fbc43c184ac7bfbc1851cd73f7 [file] [log] [blame]
rama-huawei6c728a92016-07-11 14:48:12 +05301module ErrorAppTag {
2 yang-version 1;
3 namespace http://huawei.com;
4 prefix Ant;
5 container interface {
6 leaf ifType {
7 type enumeration {
8 enum ethernet;
9 enum atm;
10 }
11 }
12 leaf ifMTU {
13 type uint32;
14 }
15 must "ifType != 'ethernet' or " +
16 "(ifType = 'ethernet' and ifMTU = 1500)" {
17 description "An ethernet MTU must be 1500";
18 error-app-tag "An ethernet MTU must be 1500";
19 }
20 must "ifType != 'atm' or " +
21 "(ifType = 'atm' and ifMTU <= 17966 and ifMTU >= 64)" {
22 description "An atm MTU must be 64 .. 17966";
23 }
24 }
25}