Sean Condon | 6b3a645 | 2016-12-07 17:47:00 +0000 | [diff] [blame^] | 1 | module default-deny-all-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-all { |
| 15 | description |
| 16 | "Used to indicate that the data model node |
| 17 | controls a very sensitive security system parameter."; |
| 18 | } |
| 19 | |
| 20 | |
| 21 | container test { |
| 22 | nacm:default-deny-all; |
| 23 | |
| 24 | leaf test1 { |
| 25 | type string { |
| 26 | length 1..6; |
| 27 | } |
| 28 | description "A leaf without an extension"; |
| 29 | } |
| 30 | |
| 31 | leaf test2 { |
| 32 | nacm:default-deny-all; |
| 33 | type string { |
| 34 | length 1..6; |
| 35 | } |
| 36 | description "A leaf with an extension"; |
| 37 | } |
| 38 | |
| 39 | leaf-list test3 { |
| 40 | nacm:default-deny-all; |
| 41 | type string { |
| 42 | length 1..6; |
| 43 | } |
| 44 | description "A leaf-list with an extension"; |
| 45 | } |
| 46 | |
| 47 | list test4 { |
| 48 | key test4a; |
| 49 | nacm:default-deny-all; |
| 50 | description "A list with the extension"; |
| 51 | |
| 52 | leaf test4a { |
| 53 | type uint8; |
| 54 | description "Key leaf in the list"; |
| 55 | } |
| 56 | |
| 57 | leaf test4b { |
| 58 | type string { |
| 59 | length 1..6; |
| 60 | } |
| 61 | description "Another leaf in the list"; |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | rpc testrpc { |
| 67 | nacm:default-deny-all; |
| 68 | description "An rpc with default-deny-all"; |
| 69 | } |
| 70 | |
| 71 | notification testnotif { |
| 72 | nacm:default-deny-all; |
| 73 | description "An rpc with default-deny-all"; |
| 74 | |
| 75 | leaf test4b { |
| 76 | type string { |
| 77 | length 1..6; |
| 78 | } |
| 79 | description "Another leaf in the list"; |
| 80 | } |
| 81 | } |
| 82 | } |