Blame models/ietf-yang-metadata@2016-08-05.yang

Packit Service 311553
module ietf-yang-metadata {
Packit Service 311553
  namespace "urn:ietf:params:xml:ns:yang:ietf-yang-metadata";
Packit Service 311553
  prefix md;
Packit Service 311553
Packit Service 311553
  organization
Packit Service 311553
    "IETF NETMOD (NETCONF Data Modeling Language) Working Group";
Packit Service 311553
  contact
Packit Service 311553
    "WG Web:   <https://datatracker.ietf.org/wg/netmod/>
Packit Service 311553
Packit Service 311553
     WG List:  <mailto:netmod@ietf.org>
Packit Service 311553
Packit Service 311553
     WG Chair: Lou Berger
Packit Service 311553
               <mailto:lberger@labn.net>
Packit Service 311553
Packit Service 311553
     WG Chair: Kent Watsen
Packit Service 311553
               <mailto:kwatsen@juniper.net>
Packit Service 311553
Packit Service 311553
     Editor:   Ladislav Lhotka
Packit Service 311553
               <mailto:lhotka@nic.cz>";
Packit Service 311553
  description
Packit Service 311553
    "This YANG module defines an 'extension' statement that allows
Packit Service 311553
     for defining metadata annotations.
Packit Service 311553
Packit Service 311553
     Copyright (c) 2016 IETF Trust and the persons identified as
Packit Service 311553
     authors of the code.  All rights reserved.
Packit Service 311553
Packit Service 311553
     Redistribution and use in source and binary forms, with or
Packit Service 311553
     without modification, is permitted pursuant to, and subject to
Packit Service 311553
     the license terms contained in, the Simplified BSD License set
Packit Service 311553
     forth in Section 4.c of the IETF Trust's Legal Provisions
Packit Service 311553
     Relating to IETF Documents
Packit Service 311553
     (http://trustee.ietf.org/license-info).
Packit Service 311553
Packit Service 311553
     This version of this YANG module is part of RFC 7952
Packit Service 311553
     (http://www.rfc-editor.org/info/rfc7952); see the RFC itself
Packit Service 311553
     for full legal notices.";
Packit Service 311553
Packit Service 311553
  revision 2016-08-05 {
Packit Service 311553
    description
Packit Service 311553
      "Initial revision.";
Packit Service 311553
    reference
Packit Service 311553
      "RFC 7952: Defining and Using Metadata with YANG";
Packit Service 311553
  }
Packit Service 311553
Packit Service 311553
  extension annotation {
Packit Service 311553
    argument name;
Packit Service 311553
    description
Packit Service 311553
      "This extension allows for defining metadata annotations in
Packit Service 311553
       YANG modules.  The 'md:annotation' statement can appear only
Packit Service 311553
       at the top level of a YANG module or submodule, i.e., it
Packit Service 311553
       becomes a new alternative in the ABNF production rule for
Packit Service 311553
       'body-stmts' (Section 14 in RFC 7950).
Packit Service 311553
Packit Service 311553
       The argument of the 'md:annotation' statement defines the name
Packit Service 311553
       of the annotation.  Syntactically, it is a YANG identifier as
Packit Service 311553
       defined in Section 6.2 of RFC 7950.
Packit Service 311553
Packit Service 311553
       An annotation defined with this 'extension' statement inherits
Packit Service 311553
       the namespace and other context from the YANG module in which
Packit Service 311553
       it is defined.
Packit Service 311553
Packit Service 311553
       The data type of the annotation value is specified in the same
Packit Service 311553
       way as for a leaf data node using the 'type' statement.
Packit Service 311553
Packit Service 311553
       The semantics of the annotation and other documentation can be
Packit Service 311553
       specified using the following standard YANG substatements (all
Packit Service 311553
       are optional): 'description', 'if-feature', 'reference',
Packit Service 311553
       'status', and 'units'.
Packit Service 311553
Packit Service 311553
       A server announces support for a particular annotation by
Packit Service 311553
       including the module in which the annotation is defined among
Packit Service 311553
       the advertised YANG modules, e.g., in a NETCONF <hello>
Packit Service 311553
       message or in the YANG library (RFC 7950).  The annotation can
Packit Service 311553
       then be attached to any instance of a data node defined in any
Packit Service 311553
       YANG module that is advertised by the server.
Packit Service 311553
Packit Service 311553
       XML encoding and JSON encoding of annotations are defined in
Packit Service 311553
       RFC 7952.";
Packit Service 311553
  }
Packit Service 311553
}