Sean Condon | 6b3a645 | 2016-12-07 17:47:00 +0000 | [diff] [blame] | 1 | module default-deny-write-extension-ref-test { |
| 2 | namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-acm"; |
| 3 | prefix "nacm"; |
| 4 | |
| 5 | description |
| 6 | "This version of this YANG module is part of RFC 6536; see |
| 7 | the RFC itself for full legal notices."; |
| 8 | |
| 9 | revision 2016-12-08 { |
| 10 | description |
| 11 | "Initial revision."; |
| 12 | } |
| 13 | |
| 14 | extension default-deny-write { |
| 15 | description |
| 16 | "Used to indicate that the data model node |
| 17 | represents a sensitive security system parameter."; |
| 18 | } |
| 19 | |
| 20 | |
| 21 | container test { |
| 22 | nacm:default-deny-write; |
| 23 | leaf test1 { |
| 24 | type string { |
| 25 | length 1..6; |
| 26 | } |
| 27 | description "A leaf without an extension"; |
| 28 | } |
| 29 | |
| 30 | leaf test2 { |
| 31 | nacm:default-deny-write; |
| 32 | type string { |
| 33 | length 1..6; |
| 34 | } |
| 35 | description "A leaf with an extension"; |
| 36 | } |
| 37 | |
| 38 | leaf-list test3 { |
| 39 | nacm:default-deny-all; |
| 40 | type string { |
| 41 | length 1..6; |
| 42 | } |
| 43 | description "A leaf-list with an extension"; |
| 44 | } |
| 45 | |
| 46 | list test4 { |
| 47 | key test4a; |
| 48 | nacm:default-deny-all; |
| 49 | description "A list with the extension"; |
| 50 | |
| 51 | leaf test4a { |
| 52 | type uint8; |
| 53 | description "Key leaf in the list"; |
| 54 | } |
| 55 | |
| 56 | leaf test4b { |
| 57 | type string { |
| 58 | length 1..6; |
| 59 | } |
| 60 | description "Another leaf in the list"; |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | } |