forked from netmod-wg/schema-mount
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ex5.xml
33 lines (33 loc) · 753 Bytes
/
ex5.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<schema-mounts
xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-schema-mount">
<namespace>
<prefix>edt</prefix>
<uri>http://example.org/device-types</uri>
</namespace>
<mount-point>
<module>example-network-manager</module>
<name>managed-device</name>
<use-schema>
<name>switch</name>
<when>derived-from-or-self(../type, 'edt:switch-device')</when>
</use-schema>
<use-schema>
<name>router</name>
<when>derived-from-or-self(../type, 'edt:router-device')</when>
</use-schema>
</mount-point>
<schema>
<name>switch</name>
<module>
...
</module>
...
</schema>
<schema>
<name>router</name>
<module>
...
</module>
...
</schema>
</schema-mounts>