Blame tests/schema/yang/ietf/ietf-netconf-with-defaults.yang

Packit 8fb591
module ietf-netconf-with-defaults {
Packit 8fb591
Packit 8fb591
   namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults";
Packit 8fb591
Packit 8fb591
   prefix ncwd;
Packit 8fb591
Packit 8fb591
   import ietf-netconf { prefix nc; }
Packit 8fb591
Packit 8fb591
   organization
Packit 8fb591
    "IETF NETCONF (Network Configuration Protocol) Working Group";
Packit 8fb591
Packit 8fb591
   contact
Packit 8fb591
    "WG Web:   <http://tools.ietf.org/wg/netconf/>
Packit 8fb591
Packit 8fb591
     WG List:  <netconf@ietf.org>
Packit 8fb591
Packit 8fb591
     WG Chair: Bert Wijnen
Packit 8fb591
               <bertietf@bwijnen.net>
Packit 8fb591
Packit 8fb591
     WG Chair: Mehmet Ersue
Packit 8fb591
               <mehmet.ersue@nsn.com>
Packit 8fb591
Packit 8fb591
     Editor: Andy Bierman
Packit 8fb591
             <andy.bierman@brocade.com>
Packit 8fb591
Packit 8fb591
     Editor: Balazs Lengyel
Packit 8fb591
             <balazs.lengyel@ericsson.com>";
Packit 8fb591
Packit 8fb591
   description
Packit 8fb591
    "This module defines an extension to the NETCONF protocol
Packit 8fb591
     that allows the NETCONF client to control how default
Packit 8fb591
     values are handled by the server in particular NETCONF
Packit 8fb591
     operations.
Packit 8fb591
Packit 8fb591
     Copyright (c) 2011 IETF Trust and the persons identified as
Packit 8fb591
     the document authors.  All rights reserved.
Packit 8fb591
Packit 8fb591
     Redistribution and use in source and binary forms, with or
Packit 8fb591
     without modification, is permitted pursuant to, and subject
Packit 8fb591
     to the license terms contained in, the Simplified BSD License
Packit 8fb591
     set forth in Section 4.c of the IETF Trust's Legal Provisions
Packit 8fb591
     Relating to IETF Documents
Packit 8fb591
     (http://trustee.ietf.org/license-info).
Packit 8fb591
Packit 8fb591
     This version of this YANG module is part of RFC 6243; see
Packit 8fb591
     the RFC itself for full legal notices.";
Packit 8fb591
Packit 8fb591
   revision 2011-06-01 {
Packit 8fb591
     description
Packit 8fb591
       "Initial version.";
Packit 8fb591
     reference
Packit 8fb591
      "RFC 6243: With-defaults Capability for NETCONF";
Packit 8fb591
   }
Packit 8fb591
Packit 8fb591
   typedef with-defaults-mode {
Packit 8fb591
      description
Packit 8fb591
        "Possible modes to report default data.";
Packit 8fb591
      reference
Packit 8fb591
         "RFC 6243; Section 3.";
Packit 8fb591
      type enumeration {
Packit 8fb591
         enum report-all {
Packit 8fb591
             description
Packit 8fb591
               "All default data is reported.";
Packit 8fb591
             reference
Packit 8fb591
               "RFC 6243; Section 3.1";
Packit 8fb591
         }
Packit 8fb591
         enum report-all-tagged {
Packit 8fb591
             description
Packit 8fb591
               "All default data is reported.
Packit 8fb591
                Any nodes considered to be default data
Packit 8fb591
                will contain a 'default' XML attribute,
Packit 8fb591
                set to 'true' or '1'.";
Packit 8fb591
             reference
Packit 8fb591
               "RFC 6243; Section 3.4";
Packit 8fb591
         }
Packit 8fb591
         enum trim {
Packit 8fb591
             description
Packit 8fb591
               "Values are not reported if they contain the default.";
Packit 8fb591
             reference
Packit 8fb591
               "RFC 6243; Section 3.2";
Packit 8fb591
         }
Packit 8fb591
         enum explicit {
Packit 8fb591
             description
Packit 8fb591
               "Report values that contain the definition of
Packit 8fb591
                explicitly set data.";
Packit 8fb591
             reference
Packit 8fb591
               "RFC 6243; Section 3.3";
Packit 8fb591
         }
Packit 8fb591
     }
Packit 8fb591
   }
Packit 8fb591
Packit 8fb591
   grouping with-defaults-parameters {
Packit 8fb591
     description
Packit 8fb591
       "Contains the <with-defaults> parameter for control
Packit 8fb591
        of defaults in NETCONF retrieval operations.";
Packit 8fb591
Packit 8fb591
     leaf with-defaults {
Packit 8fb591
       description
Packit 8fb591
         "The explicit defaults processing mode requested.";
Packit 8fb591
       reference
Packit 8fb591
         "RFC 6243; Section 4.5.1";
Packit 8fb591
Packit 8fb591
       type with-defaults-mode;
Packit 8fb591
     }
Packit 8fb591
   }
Packit 8fb591
Packit 8fb591
   // extending the get-config operation
Packit 8fb591
   augment /nc:get-config/nc:input {
Packit 8fb591
       description
Packit 8fb591
         "Adds the <with-defaults> parameter to the
Packit 8fb591
          input of the NETCONF <get-config> operation.";
Packit 8fb591
       reference
Packit 8fb591
         "RFC 6243; Section 4.5.1";
Packit 8fb591
Packit 8fb591
       uses with-defaults-parameters;
Packit 8fb591
   }
Packit 8fb591
Packit 8fb591
   // extending the get operation
Packit 8fb591
   augment /nc:get/nc:input {
Packit 8fb591
       description
Packit 8fb591
         "Adds the <with-defaults> parameter to
Packit 8fb591
          the input of the NETCONF <get> operation.";
Packit 8fb591
       reference
Packit 8fb591
         "RFC 6243; Section 4.5.1";
Packit 8fb591
Packit 8fb591
       uses with-defaults-parameters;
Packit 8fb591
   }
Packit 8fb591
Packit 8fb591
   // extending the copy-config operation
Packit 8fb591
   augment /nc:copy-config/nc:input {
Packit 8fb591
       description
Packit 8fb591
         "Adds the <with-defaults> parameter to
Packit 8fb591
          the input of the NETCONF <copy-config> operation.";
Packit 8fb591
       reference
Packit 8fb591
         "RFC 6243; Section 4.5.1";
Packit 8fb591
Packit 8fb591
       uses with-defaults-parameters;
Packit 8fb591
   }
Packit 8fb591
Packit 8fb591
}