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