Blame models/yang@2017-02-20.yang

Packit 8fb591
module yang {
Packit 8fb591
  namespace "urn:ietf:params:xml:ns:yang:1";
Packit 8fb591
  prefix yang;
Packit 8fb591
Packit 8fb591
  import ietf-yang-metadata {
Packit 8fb591
    prefix md;
Packit 8fb591
    revision-date 2016-08-05;
Packit 8fb591
  }
Packit 8fb591
Packit 8fb591
  organization
Packit 8fb591
    "libyang";
Packit 8fb591
Packit 8fb591
  contact
Packit 8fb591
    "Web:    <https://github.com/CESNET/libyang/>
Packit 8fb591
     Author: Radek Krejci <rkrejci@cesnet.cz>";
Packit 8fb591
Packit 8fb591
  description
Packit 8fb591
    "This is a kind of fake model with no data, typedefs or anything
Packit 8fb591
     else. libyang uses this module to implement various YANG attributes
Packit 8fb591
     defined in RFC 6020.";
Packit 8fb591
Packit 8fb591
  revision 2017-02-20 {
Packit 8fb591
    description
Packit 8fb591
      "Added metadata for NETCONF's edit-config manipulation with ordered
Packit 8fb591
       lists and leaf-lists.";
Packit 8fb591
    reference
Packit 8fb591
      "RFC 7950: The YANG 1.1 Data Modeling Language";
Packit 8fb591
  }
Packit 8fb591
Packit 8fb591
  revision 2016-02-11 {
Packit 8fb591
    description
Packit 8fb591
      "Initial revision";
Packit 8fb591
    reference
Packit 8fb591
      "RFC 6020: YANG - A Data Modeling Language for
Packit 8fb591
       the Network Configuration Protocol (NETCONF)";
Packit 8fb591
  }
Packit 8fb591
Packit 8fb591
  md:annotation insert {
Packit 8fb591
    type enumeration {
Packit 8fb591
      enum first;
Packit 8fb591
      enum last;
Packit 8fb591
      enum before;
Packit 8fb591
      enum after;
Packit 8fb591
    }
Packit 8fb591
    reference "RFC7950 section 7.8.6. and section 7.7.9.";
Packit 8fb591
    description
Packit 8fb591
      "In user ordered leaf-list, the attribute can be used to control
Packit 8fb591
       where in the leaf-list the entry is inserted. It can be used during
Packit 8fb591
       the NETCONF <edit-config> \"create\" operations to insert a new list or
Packit 8fb591
       leaf-list entry, or during \"merge\" or \"replace\" operations to insert
Packit 8fb591
       a new list or leaf-list entry or move an existing one.
Packit 8fb591
Packit 8fb591
       If the value is \"before\" or \"after\", the \"value\"/\"key\" attribute
Packit 8fb591
       MUST also be used to specify an existing entry in the list or leaf-list.
Packit 8fb591
Packit 8fb591
       If no \"insert\" attribute is present in the \"create\" operation, it
Packit 8fb591
       defaults to \"last\".";
Packit 8fb591
  }
Packit 8fb591
Packit 8fb591
  md:annotation value {
Packit 8fb591
    type string;
Packit 8fb591
    reference "RFC7950 section 7.7.9.";
Packit 8fb591
    description
Packit 8fb591
      "In user ordered leaf-list, the attribute must be used if the attribute
Packit 8fb591
       insert is used and specifies before/after which existing instance the
Packit 8fb591
       new instance should be inserted.";
Packit 8fb591
  }
Packit 8fb591
Packit 8fb591
  md:annotation key {
Packit 8fb591
    type string;
Packit 8fb591
    reference "RFC7950 section 7.8.6.";
Packit 8fb591
    description
Packit 8fb591
      "In user ordered list, the attribute must be used if the attribute
Packit 8fb591
       insert is used and specifies before/after which existing instance the
Packit 8fb591
       new instance should be inserted.";
Packit 8fb591
  }
Packit 8fb591
}