aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/TestVNF/netconftemplates/netconftemplates/ietf-netconf-with-defaults@2011-06-01.yang
blob: 896b65480c9b2e4092f7decf22de3c6e92bb91b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-1">
  <data xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">module ietf-netconf-with-defaults {
  namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults";
  prefix ncwd;

  import ietf-netconf {
    prefix nc;
  }

  organization
    "IETF NETCONF (Network Configuration Protocol) Working Group";
  contact
    "WG Web:   &lt;http://tools.ietf.org/wg/netconf/&gt;

     WG List:  &lt;netconf@ietf.org&gt;

     WG Chair: Bert Wijnen
               &lt;bertietf@bwijnen.net&gt;

     WG Chair: Mehmet Ersue
               &lt;mehmet.ersue@nsn.com&gt;

     Editor: Andy Bierman
             &lt;andy.bierman@brocade.com&gt;

     Editor: Balazs Lengyel
             &lt;balazs.lengyel@ericsson.com&gt;";
  description
    "This module defines an extension to the NETCONF protocol
     that allows the NETCONF client to control how default
     values are handled by the server in particular NETCONF
     operations.

     Copyright (c) 2011 IETF Trust and the persons identified as
     the document authors.  All rights reserved.

     Redistribution and use in source and binary forms, with or
     without modification, is permitted pursuant to, and subject
     to the license terms contained in, the Simplified BSD License
     set forth in Section 4.c of the IETF Trust's Legal Provisions
     Relating to IETF Documents
     (http://trustee.ietf.org/license-info).

     This version of this YANG module is part of RFC 6243; see
     the RFC itself for full legal notices.";

  revision 2011-06-01 {
    description
      "Initial version.";
    reference
      "RFC 6243: With-defaults Capability for NETCONF";
  }

  typedef with-defaults-mode {
    type enumeration {
      enum "report-all" {
        description
          "All default data is reported.";
        reference
          "RFC 6243; Section 3.1";
      }
      enum "report-all-tagged" {
        description
          "All default data is reported.
           Any nodes considered to be default data
           will contain a 'default' XML attribute,
           set to 'true' or '1'.";
        reference
          "RFC 6243; Section 3.4";
      }
      enum "trim" {
        description
          "Values are not reported if they contain the default.";
        reference
          "RFC 6243; Section 3.2";
      }
      enum "explicit" {
        description
          "Report values that contain the definition of
           explicitly set data.";
        reference
          "RFC 6243; Section 3.3";
      }
    }
    description
      "Possible modes to report default data.";
    reference
      "RFC 6243; Section 3.";
  }

  grouping with-defaults-parameters {
    description
      "Contains the &lt;with-defaults&gt; parameter for control
       of defaults in NETCONF retrieval operations.";
    leaf with-defaults {
      type with-defaults-mode;
      description
        "The explicit defaults processing mode requested.";
      reference
        "RFC 6243; Section 4.5.1";
    }
  }

  augment "/nc:get-config/nc:input" {
    description
      "Adds the &lt;with-defaults&gt; parameter to the
       input of the NETCONF &lt;get-config&gt; operation.";
    reference
      "RFC 6243; Section 4.5.1";
    uses with-defaults-parameters;
  }

  augment "/nc:get/nc:input" {
    description
      "Adds the &lt;with-defaults&gt; parameter to
       the input of the NETCONF &lt;get&gt; operation.";
    reference
      "RFC 6243; Section 4.5.1";
    uses with-defaults-parameters;
  }

  augment "/nc:copy-config/nc:input" {
    description
      "Adds the &lt;with-defaults&gt; parameter to
       the input of the NETCONF &lt;copy-config&gt; operation.";
    reference
      "RFC 6243; Section 4.5.1";
    uses with-defaults-parameters;
  }
}
</data>
</rpc-reply>