Michal Vasko | ddd7659 | 2022-01-17 13:34:48 +0100 | [diff] [blame^] | 1 | module sm { |
2 | yang-version 1.1; | ||||
3 | namespace "urn:sm"; | ||||
4 | prefix "sm"; | ||||
5 | |||||
6 | import ietf-yang-schema-mount { | ||||
7 | prefix yangmnt; | ||||
8 | } | ||||
9 | import ietf-interfaces { | ||||
10 | prefix if; | ||||
11 | } | ||||
12 | |||||
13 | container root { | ||||
14 | yangmnt:mount-point "root"; | ||||
15 | } | ||||
16 | container root2 { | ||||
17 | yangmnt:mount-point "root"; | ||||
18 | } | ||||
19 | container root3 { | ||||
20 | list ls { | ||||
21 | key name; | ||||
22 | leaf name { | ||||
23 | type string; | ||||
24 | } | ||||
25 | container mnt-root { | ||||
26 | yangmnt:mount-point "mnt-root"; | ||||
27 | } | ||||
28 | } | ||||
29 | } | ||||
30 | leaf target { | ||||
31 | type string; | ||||
32 | } | ||||
33 | |||||
34 | augment /if:interfaces/if:interface { | ||||
35 | leaf sm-name { | ||||
36 | type leafref { | ||||
37 | path "/sm:target"; | ||||
38 | } | ||||
39 | } | ||||
40 | } | ||||
41 | } |