1 module ietf-netconf-with-defaults {
3 namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults";
7 import ietf-netconf { prefix nc; }
10 "IETF NETCONF (Network Configuration Protocol) Working Group";
13 "WG Web: <http://tools.ietf.org/wg/netconf/>
15 WG List: <netconf@ietf.org>
18 <bertietf@bwijnen.net>
20 WG Chair: Mehmet Ersue
21 <mehmet.ersue@nsn.com>
24 <andy.bierman@brocade.com>
26 Editor: Balazs Lengyel
27 <balazs.lengyel@ericsson.com>";
30 "This module defines an extension to the NETCONF protocol
31 that allows the NETCONF client to control how default
32 values are handled by the server in particular NETCONF
35 Copyright (c) 2011 IETF Trust and the persons identified as
36 the document authors. All rights reserved.
38 Redistribution and use in source and binary forms, with or
39 without modification, is permitted pursuant to, and subject
40 to the license terms contained in, the Simplified BSD License
41 set forth in Section 4.c of the IETF Trust's Legal Provisions
42 Relating to IETF Documents
43 (http://trustee.ietf.org/license-info).
45 This version of this YANG module is part of RFC 6243; see
46 the RFC itself for full legal notices.";
52 "RFC 6243: With-defaults Capability for NETCONF";
55 typedef with-defaults-mode {
57 "Possible modes to report default data.";
59 "RFC 6243; Section 3.";
63 "All default data is reported.";
65 "RFC 6243; Section 3.1";
67 enum report-all-tagged {
69 "All default data is reported.
70 Any nodes considered to be default data
71 will contain a 'default' XML attribute,
72 set to 'true' or '1'.";
74 "RFC 6243; Section 3.4";
78 "Values are not reported if they contain the default.";
80 "RFC 6243; Section 3.2";
84 "Report values that contain the definition of
85 explicitly set data.";
87 "RFC 6243; Section 3.3";
92 grouping with-defaults-parameters {
94 "Contains the <with-defaults> parameter for control
95 of defaults in NETCONF retrieval operations.";
99 "The explicit defaults processing mode requested.";
101 "RFC 6243; Section 4.5.1";
103 type with-defaults-mode;
107 // extending the get-config operation
108 augment /nc:get-config/nc:input {
110 "Adds the <with-defaults> parameter to the
111 input of the NETCONF <get-config> operation.";
113 "RFC 6243; Section 4.5.1";
115 uses with-defaults-parameters;
118 // extending the get operation
119 augment /nc:get/nc:input {
121 "Adds the <with-defaults> parameter to
122 the input of the NETCONF <get> operation.";
124 "RFC 6243; Section 4.5.1";
126 uses with-defaults-parameters;
129 // extending the copy-config operation
130 augment /nc:copy-config/nc:input {
132 "Adds the <with-defaults> parameter to
133 the input of the NETCONF <copy-config> operation.";
135 "RFC 6243; Section 4.5.1";
137 uses with-defaults-parameters;