summaryrefslogtreecommitdiffstats
path: root/tools/lint/examples/sm-context-extension.xml
blob: 747c60ffcf05833f78cee79c5b2153d5e8849478 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<yang-library xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-library"
     xmlns:ds="urn:ietf:params:xml:ns:yang:ietf-datastores">
   <module-set>
     <name>test-set</name>
     <module>
       <name>ietf-datastores</name>
       <revision>2018-02-14</revision>
       <namespace>urn:ietf:params:xml:ns:yang:ietf-datastores</namespace>
     </module>
     <module>
       <name>ietf-yang-library</name>
       <revision>2019-01-04</revision>
       <namespace>urn:ietf:params:xml:ns:yang:ietf-yang-library</namespace>
     </module>
     <module>
       <name>sm-extension</name>
       <namespace>urn:sm-ext</namespace>
     </module>
     <module>
       <name>iana-if-type</name>
       <namespace>urn:ietf:params:xml:ns:yang:iana-if-type</namespace>
     </module>
     <import-only-module>
       <name>ietf-yang-types</name>
       <revision>2013-07-15</revision>
       <namespace>urn:ietf:params:xml:ns:yang:ietf-yang-types</namespace>
     </import-only-module>
     <import-only-module>
       <name>sm-mod</name>
       <revision>2017-01-26</revision>
       <namespace>urn:yanglint:sm-mod</namespace>
     </import-only-module>
   </module-set>
   <schema>
     <name>test-schema</name>
     <module-set>test-set</module-set>
   </schema>
   <datastore>
     <name>ds:running</name>
     <schema>test-schema</schema>
   </datastore>
   <datastore>
     <name>ds:operational</name>
     <schema>test-schema</schema>
   </datastore>
   <content-id>1</content-id>
 </yang-library>
 <modules-state xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-library">
   <module-set-id>1</module-set-id>
 </modules-state>
 <schema-mounts xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-schema-mount">
   <namespace>
     <prefix>if</prefix>
     <uri>urn:ietf:params:xml:ns:yang:ietf-interfaces</uri>
   </namespace>
   <mount-point>
     <module>sm-main</module>
     <label>mnt-root</label>
     <shared-schema>
       <parent-reference>/if:interfaces/if:interface/if:name</parent-reference>
       <parent-reference>/if:interfaces/if:interface/if:type</parent-reference>
     </shared-schema>
   </mount-point>
  </schema-mounts>