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.";
51 "RFC 6243: With-defaults Capability for NETCONF";
54 typedef with-defaults-mode {
56 "Possible modes to report default data.";
58 "RFC 6243; Section 3.";
62 "All default data is reported.";
64 "RFC 6243; Section 3.1";
66 enum report-all-tagged {
68 "All default data is reported.
69 Any nodes considered to be default data
70 will contain a 'default' XML attribute,
71 set to 'true' or '1'.";
73 "RFC 6243; Section 3.4";
77 "Values are not reported if they contain the default.";
79 "RFC 6243; Section 3.2";
83 "Report values that contain the definition of
84 explicitly set data.";
86 "RFC 6243; Section 3.3";
91 grouping with-defaults-parameters {
93 "Contains the <with-defaults> parameter for control
94 of defaults in NETCONF retrieval operations.";
97 "The explicit defaults processing mode requested.";
99 "RFC 6243; Section 4.5.1";
101 type with-defaults-mode;
105 // extending the get-config operation
106 augment /nc:get-config/nc:input {
108 "Adds the <with-defaults> parameter to the
109 input of the NETCONF <get-config> operation.";
111 "RFC 6243; Section 4.5.1";
113 uses with-defaults-parameters;
116 // extending the get operation
117 augment /nc:get/nc:input {
119 "Adds the <with-defaults> parameter to
120 the input of the NETCONF <get> operation.";
122 "RFC 6243; Section 4.5.1";
124 uses with-defaults-parameters;
127 // extending the copy-config operation
128 augment /nc:copy-config/nc:input {
130 "Adds the <with-defaults> parameter to
131 the input of the NETCONF <copy-config> operation.";
133 "RFC 6243; Section 4.5.1";
135 uses with-defaults-parameters;