Adding TestVNF netconf server
[demo.git] / vnfs / TestVNF / netconftemplates / netconftemplates / yang@2017-02-20.yin
1 <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-1">
2   <data xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
3 &lt;module name="yang"
4         xmlns="urn:ietf:params:xml:ns:yang:yin:1"
5         xmlns:yang="urn:ietf:params:xml:ns:yang:1"
6         xmlns:md="urn:ietf:params:xml:ns:yang:ietf-yang-metadata"&gt;
7   &lt;namespace uri="urn:ietf:params:xml:ns:yang:1"/&gt;
8   &lt;prefix value="yang"/&gt;
9   &lt;import module="ietf-yang-metadata"&gt;
10     &lt;prefix value="md"/&gt;
11     &lt;revision-date date="2016-08-05"/&gt;
12   &lt;/import&gt;
13   &lt;organization&gt;
14     &lt;text&gt;libyang&lt;/text&gt;
15   &lt;/organization&gt;
16   &lt;contact&gt;
17     &lt;text&gt;Web:    &amp;lt;https://github.com/CESNET/libyang/&amp;gt;
18 Author: Radek Krejci &amp;lt;rkrejci@cesnet.cz&amp;gt;&lt;/text&gt;
19   &lt;/contact&gt;
20   &lt;description&gt;
21     &lt;text&gt;This is a kind of fake model with no data, typedefs or anything
22 else. libyang uses this module to implement various YANG attributes
23 defined in RFC 6020.&lt;/text&gt;
24   &lt;/description&gt;
25   &lt;revision date="2017-02-20"&gt;
26     &lt;description&gt;
27       &lt;text&gt;Added metadata for NETCONF's edit-config manipulation with ordered
28 lists and leaf-lists.&lt;/text&gt;
29     &lt;/description&gt;
30     &lt;reference&gt;
31       &lt;text&gt;RFC 7950: The YANG 1.1 Data Modeling Language&lt;/text&gt;
32     &lt;/reference&gt;
33   &lt;/revision&gt;
34   &lt;revision date="2016-02-11"&gt;
35     &lt;description&gt;
36       &lt;text&gt;Initial revision&lt;/text&gt;
37     &lt;/description&gt;
38     &lt;reference&gt;
39       &lt;text&gt;RFC 6020: YANG - A Data Modeling Language for
40 the Network Configuration Protocol (NETCONF)&lt;/text&gt;
41     &lt;/reference&gt;
42   &lt;/revision&gt;
43   &lt;md:annotation name="insert"&gt;
44     &lt;type name="enumeration"&gt;
45       &lt;enum name="first"/&gt;
46       &lt;enum name="last"/&gt;
47       &lt;enum name="before"/&gt;
48       &lt;enum name="after"/&gt;
49     &lt;/type&gt;
50     &lt;description&gt;
51       &lt;text&gt;In user ordered leaf-list, the attribute can be used to control
52 where in the leaf-list the entry is inserted. It can be used during
53 the NETCONF &amp;lt;edit-config&amp;gt; &amp;quot;create&amp;quot; operations to insert a new list or
54 leaf-list entry, or during &amp;quot;merge&amp;quot; or &amp;quot;replace&amp;quot; operations to insert
55 a new list or leaf-list entry or move an existing one.
56
57 If the value is &amp;quot;before&amp;quot; or &amp;quot;after&amp;quot;, the &amp;quot;value&amp;quot;/&amp;quot;key&amp;quot; attribute
58 MUST also be used to specify an existing entry in the list or leaf-list.
59
60 If no &amp;quot;insert&amp;quot; attribute is present in the &amp;quot;create&amp;quot; operation, it
61 defaults to &amp;quot;last&amp;quot;.&lt;/text&gt;
62     &lt;/description&gt;
63     &lt;reference&gt;
64       &lt;text&gt;RFC7950 section 7.8.6. and section 7.7.9.&lt;/text&gt;
65     &lt;/reference&gt;
66   &lt;/md:annotation&gt;
67   &lt;md:annotation name="value"&gt;
68     &lt;type name="string"/&gt;
69     &lt;description&gt;
70       &lt;text&gt;In user ordered leaf-list, the attribute must be used if the attribute
71 insert is used and specifies before/after which existing instance the
72 new instance should be inserted.&lt;/text&gt;
73     &lt;/description&gt;
74     &lt;reference&gt;
75       &lt;text&gt;RFC7950 section 7.7.9.&lt;/text&gt;
76     &lt;/reference&gt;
77   &lt;/md:annotation&gt;
78   &lt;md:annotation name="key"&gt;
79     &lt;type name="string"/&gt;
80     &lt;description&gt;
81       &lt;text&gt;In user ordered list, the attribute must be used if the attribute
82 insert is used and specifies before/after which existing instance the
83 new instance should be inserted.&lt;/text&gt;
84     &lt;/description&gt;
85     &lt;reference&gt;
86       &lt;text&gt;RFC7950 section 7.8.6.&lt;/text&gt;
87     &lt;/reference&gt;
88   &lt;/md:annotation&gt;
89 &lt;/module&gt;
90 </data>
91 </rpc-reply>