netconfcentral logo

ietf-module-tags

HTML

ietf-module-tags@2017-10-25



  module ietf-module-tags {

    yang-version 1;

    namespace
      "urn:ietf:params:xml:ns:yang:ietf-module-tags";

    prefix mtags;

    import ietf-yang-types {
      prefix yang;
    }
    import ietf-yang-library {
      prefix yanglib;
    }

    organization
      "IETF NetMod Working Group (NetMod)";

    contact
      "NetMod Working Group - <netmod@ietf.org>";

    description
      "This module describes a tagging mechanism for yang module.
     Tags may be IANA assigned or privately defined types.";

    revision "2017-10-25" {
      description "Initial revision.";
      reference
        "TBD";

    }


    grouping module-tags {
      description
        "A grouping that may be used to classify a module.";
      leaf-list tags {
        type string;
        description
          "The module associated tags. See the IANA 'YANG Module Tag
        Prefix' registry for reserved prefixes and the IANA 'YANG
        Module IETF Tag' registry for IETF standard tags";
      }
    }  // grouping module-tags

    grouping yanglib-common-leafs {
      description
        "Common parameters for YANG modules and submodules.
       This definition extract from RFC7895 as it is defined as
       a grouping within a grouping.

       TBD is there a legal way to use a grouping defined within
       another grouping without using the parent? If so, should change
       to that.";
      leaf name {
        type yang:yang-identifier;
        mandatory true;
        description
          "The YANG module or submodule name.";
      }

      leaf revision {
        type union {
          type yanglib:revision-identifier;
          type string {
            length "0";
          }
        }
        mandatory true;
        description
          "The YANG module or submodule revision date.
         A zero-length string is used if no revision statement
         is present in the YANG module or submodule.";
      }
    }  // grouping yanglib-common-leafs

    list module-tags {
      key "name revision";
      description
        "A list of modules and their tags";
      uses yanglib-common-leafs;

      uses module-tags;
    }  // list module-tags

    rpc reset-tags {
      description
        "Reset a list of tags for a given module to the list of module
       and implementation time defiend tags. It provides the list of
       tags associated with the module post reset.";
      input {
        uses yanglib-common-leafs;
      }

      output {
        uses module-tags;
      }
    }  // rpc reset-tags
  }  // module ietf-module-tags

Summary

  
  
Organization IETF NetMod Working Group (NetMod)
  
Module ietf-module-tags
Version 2017-10-25
File ietf-module-tags@2017-10-25.yang
  
Prefix mtags
Namespace urn:ietf:params:xml:ns:yang:ietf-module-tags
  
Cooked /cookedmodules/ietf-module-tags/2017-10-25
YANG /src/ietf-module-tags@2017-10-25.yang
XSD /xsd/ietf-module-tags@2017-10-25.xsd
  
Abstract This module describes a tagging mechanism for yang module. Tags may be IANA assigned or privately defined types.
  
Contact
NetMod Working Group - <netmod@ietf.org>

Description

 
This module describes a tagging mechanism for yang module.
Tags may be IANA assigned or privately defined types.

Groupings

Grouping Objects Abstract
module-tags tags A grouping that may be used to classify a module.
yanglib-common-leafs name revision Common parameters for YANG modules and submodules. This definition extract from RFC7895 as it is defined as a grouping within a grouping. TBD is there a legal way to use a grouping defined within another grouping without using the parent? If so, should c...

Objects

Type Key
Mandatory config
Optional config
Not config
Object Type Abstract
module-tags list A list of modules and their tags
   name leaf The YANG module or submodule name.
   revision leaf The YANG module or submodule revision date. A zero-length string is used if no revision statement is present in the YANG module or submodule.
   tags leaf-list The module associated tags. See the IANA 'YANG Module Tag Prefix' registry for reserved prefixes and the IANA 'YANG Module IETF Tag' registry for IETF standard tags

RPC Methods

RPC Abstract
reset-tags Reset a list of tags for a given module to the list of module and implementation time defiend tags. It provides the list of tags associated with the module post reset.