sonu gupta | 1bb37b8 | 2016-11-11 16:51:18 +0530 | [diff] [blame] | 1 | module rootlist { |
| 2 | |
| 3 | yang-version 1; |
| 4 | |
| 5 | namespace "ydt.rootlist"; |
| 6 | |
| 7 | prefix "rootlist"; |
| 8 | |
| 9 | organization "ON-LAB"; |
| 10 | |
| 11 | description "This submodule defines for root."; |
| 12 | |
| 13 | revision "2016-06-24" { |
| 14 | description "Initial revision."; |
| 15 | } |
| 16 | /* |
| 17 | +--------------+---------+-------------+ |
| 18 | | substatement | section | cardinality | |
| 19 | +--------------+---------+-------------+ |
| 20 | | anyxml | 7.10 | 0..n | |
| 21 | | choice | 7.9 | 0..n | |
| 22 | | config | 7.19.1 | 0..1 | |
| 23 | | container | 7.5 | 0..n | |
| 24 | | description | 7.19.3 | 0..1 | |
| 25 | | grouping | 7.11 | 0..n | |
| 26 | | if-feature | 7.18.2 | 0..n | |
| 27 | | key | 7.8.2 | 0..1 | |
| 28 | | leaf | 7.6 | 0..n | |
| 29 | | leaf-list | 7.7 | 0..n | |
| 30 | | list | 7.8 | 0..n | |
| 31 | | max-elements | 7.7.4 | 0..1 | |
| 32 | | min-elements | 7.7.3 | 0..1 | |
| 33 | | must | 7.5.3 | 0..n | |
| 34 | | ordered-by | 7.7.5 | 0..1 | |
| 35 | | reference | 7.19.4 | 0..1 | |
| 36 | | status | 7.19.2 | 0..1 | |
| 37 | | typedef | 7.3 | 0..n | |
| 38 | | unique | 7.8.3 | 0..n | |
| 39 | | uses | 7.12 | 0..n | |
| 40 | | when | 7.19.5 | 0..1 | |
| 41 | +--------------+---------+-------------+ |
| 42 | */ |
| 43 | |
| 44 | list listwithoutcontainer { |
| 45 | key "invalidinterval"; |
| 46 | min-elements 1; //-- comment |
| 47 | leaf invalidinterval { |
| 48 | type "uint16"; |
| 49 | units "seconds"; |
| 50 | description "Interval before a route is declared invalid"; |
| 51 | config true; |
| 52 | mandatory true; |
| 53 | status current; |
| 54 | reference "RFC 6020"; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | list listwithcontainer { |
| 59 | key "invalid invalid1"; |
| 60 | max-elements 3; |
| 61 | min-elements 1; |
| 62 | reference "list reference"; |
| 63 | unique "invalid"; |
| 64 | leaf-list invalidinterval { |
| 65 | type "uint16"; |
| 66 | units "seconds"; |
| 67 | description "Interval before a route is declared invalid"; |
| 68 | config false; |
| 69 | status current; |
| 70 | reference "RFC 6020"; |
| 71 | } |
| 72 | |
| 73 | container interface { |
| 74 | leaf invalidinterval { |
| 75 | type "uint16"; |
| 76 | units "seconds"; |
| 77 | status current; |
| 78 | mandatory true; |
| 79 | reference "RFC 6020"; |
| 80 | } |
| 81 | |
| 82 | leaf invalid { |
| 83 | type "uint16"; |
| 84 | units "seconds"; |
| 85 | description "Interval before a route is declared invalid"; |
| 86 | default "16"; |
| 87 | status current; |
| 88 | reference "RFC 6020"; |
| 89 | } |
| 90 | |
| 91 | } |
| 92 | |
| 93 | leaf invalid { |
| 94 | type "uint16"; |
| 95 | units "seconds"; |
| 96 | description "Interval before a route is declared invalid"; |
| 97 | mandatory true; |
| 98 | status current; |
| 99 | reference "RFC 6020"; |
| 100 | } |
| 101 | |
| 102 | leaf invalid1 { |
| 103 | type "uint16"; |
| 104 | units "seconds"; |
| 105 | description "Interval before a route is declared invalid"; |
| 106 | mandatory true; |
| 107 | status current; |
| 108 | reference "RFC 6020"; |
| 109 | } |
| 110 | } |
| 111 | } |