1module mod4 { 2 prefix abc; 3 namespace "urn:cesnet:mod4"; 4 5 leaf kk { 6 type string; 7 } 8 9 container ccc { 10 list ll { 11 key keys; 12 13 leaf keys { type int16; } 14 15 unique "config cont/config dup_config"; 16 17 leaf config { type boolean; } 18 19 container cont { 20 leaf config { 21 type string { 22 pattern '[a-z]+'; 23 } 24 config true; 25 default "ok"; 26 } 27 } 28 29 leaf dup_config { 30 type string { 31 pattern '[a-z]+'; 32 } 33 default "ok"; 34 } 35 } 36 } 37 38 container presence { 39 presence "enable"; 40 41 list ll { 42 leaf keys { type int16; } 43 44 key keys; 45 46 unique "test"; 47 unique "cont/test"; 48 49 leaf test { 50 type string; 51 default "name"; 52 } 53 54 container cont { 55 56 leaf test { 57 type string; 58 default "name"; 59 } 60 } 61 } 62 } 63 64 list server { 65 key "name"; 66 unique "ip port"; 67 leaf name { 68 type string; 69 } 70 leaf ip { 71 type string { 72 pattern '[0-9\.]*'; 73 } 74 } 75 leaf port { 76 type uint16; 77 } 78 } 79} 80