Michal Vasko | aac267d | 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 | } |
Michal Vasko | c08b9d2 | 2022-02-10 15:48:39 +0100 | [diff] [blame] | 25 | yangmnt:mount-point "mnt-root"; |
Michal Vasko | aac267d | 2022-01-17 13:34:48 +0100 | [diff] [blame] | 26 | } |
| 27 | } |
| 28 | leaf target { |
| 29 | type string; |
| 30 | } |
| 31 | |
| 32 | augment /if:interfaces/if:interface { |
| 33 | leaf sm-name { |
| 34 | type leafref { |
| 35 | path "/sm:target"; |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | } |