Adding TestVNF netconf server
[demo.git] / vnfs / TestVNF / netconftemplates / netconftemplates / ietf-netconf-with-defaults@2011-06-01.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 ietf-netconf-with-defaults {
3   namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults";
4   prefix ncwd;
5
6   import ietf-netconf {
7     prefix nc;
8   }
9
10   organization
11     "IETF NETCONF (Network Configuration Protocol) Working Group";
12   contact
13     "WG Web:   &lt;http://tools.ietf.org/wg/netconf/&gt;
14
15      WG List:  &lt;netconf@ietf.org&gt;
16
17      WG Chair: Bert Wijnen
18                &lt;bertietf@bwijnen.net&gt;
19
20      WG Chair: Mehmet Ersue
21                &lt;mehmet.ersue@nsn.com&gt;
22
23      Editor: Andy Bierman
24              &lt;andy.bierman@brocade.com&gt;
25
26      Editor: Balazs Lengyel
27              &lt;balazs.lengyel@ericsson.com&gt;";
28   description
29     "This module defines an extension to the NETCONF protocol
30      that allows the NETCONF client to control how default
31      values are handled by the server in particular NETCONF
32      operations.
33
34      Copyright (c) 2011 IETF Trust and the persons identified as
35      the document authors.  All rights reserved.
36
37      Redistribution and use in source and binary forms, with or
38      without modification, is permitted pursuant to, and subject
39      to the license terms contained in, the Simplified BSD License
40      set forth in Section 4.c of the IETF Trust's Legal Provisions
41      Relating to IETF Documents
42      (http://trustee.ietf.org/license-info).
43
44      This version of this YANG module is part of RFC 6243; see
45      the RFC itself for full legal notices.";
46
47   revision 2011-06-01 {
48     description
49       "Initial version.";
50     reference
51       "RFC 6243: With-defaults Capability for NETCONF";
52   }
53
54   typedef with-defaults-mode {
55     type enumeration {
56       enum "report-all" {
57         description
58           "All default data is reported.";
59         reference
60           "RFC 6243; Section 3.1";
61       }
62       enum "report-all-tagged" {
63         description
64           "All default data is reported.
65            Any nodes considered to be default data
66            will contain a 'default' XML attribute,
67            set to 'true' or '1'.";
68         reference
69           "RFC 6243; Section 3.4";
70       }
71       enum "trim" {
72         description
73           "Values are not reported if they contain the default.";
74         reference
75           "RFC 6243; Section 3.2";
76       }
77       enum "explicit" {
78         description
79           "Report values that contain the definition of
80            explicitly set data.";
81         reference
82           "RFC 6243; Section 3.3";
83       }
84     }
85     description
86       "Possible modes to report default data.";
87     reference
88       "RFC 6243; Section 3.";
89   }
90
91   grouping with-defaults-parameters {
92     description
93       "Contains the &lt;with-defaults&gt; parameter for control
94        of defaults in NETCONF retrieval operations.";
95     leaf with-defaults {
96       type with-defaults-mode;
97       description
98         "The explicit defaults processing mode requested.";
99       reference
100         "RFC 6243; Section 4.5.1";
101     }
102   }
103
104   augment "/nc:get-config/nc:input" {
105     description
106       "Adds the &lt;with-defaults&gt; parameter to the
107        input of the NETCONF &lt;get-config&gt; operation.";
108     reference
109       "RFC 6243; Section 4.5.1";
110     uses with-defaults-parameters;
111   }
112
113   augment "/nc:get/nc:input" {
114     description
115       "Adds the &lt;with-defaults&gt; parameter to
116        the input of the NETCONF &lt;get&gt; operation.";
117     reference
118       "RFC 6243; Section 4.5.1";
119     uses with-defaults-parameters;
120   }
121
122   augment "/nc:copy-config/nc:input" {
123     description
124       "Adds the &lt;with-defaults&gt; parameter to
125        the input of the NETCONF &lt;copy-config&gt; operation.";
126     reference
127       "RFC 6243; Section 4.5.1";
128     uses with-defaults-parameters;
129   }
130 }
131 </data>
132 </rpc-reply>