netconfcentral logo


  module ietf-yang-text-media-type {

    yang-version 1;


    prefix ymt;

      "IETF NETMOD (NETCONF Data Modeling Language) Working Group";

      "WG Web:   <>
     WG List:  <>

     WG Chair: Lou Berger

     WG Chair: Kent Watsen

     Editor:   Ladislav Lhotka

      "This module defines the *text-media-type* extension that allows
     for specifying media-type for markup that is used in arguments
     of these YANG statements: contact, description, error-message,
     organization, and reference.

     Copyright (c) 2016 IETF Trust and the persons identified as
     authors of the code. 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

     The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
     'OPTIONAL' in the module text are to be interpreted as described
     in RFC 2119 (

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

    revision "2017-03-09" {
      description "Initial revision.";
        "RFC XXXX: Using Markup in YANG Text Arguments";


    ymt:text-media-type "text/markdown; charset=UTF-8";

    extension text-media-type {
      argument "type" {
        yin-element false;
        "This extension allows for specifying a media type that is used
       for markup in the arguments of the following YANG statements:

       - contact

       - description

       - error-message

       - organization
       - reference

       The *text-media-type* extension statement MAY be used at the
       top level of a module or submodule, i.e., as a substatement of
       *module* or *submodule*, and no more than once. The declared
       media type applies throughout the module or submodule.

       The argument SHOULD be a media type registered by IANA in the
       *text* registry. Media type parameters MAY be present.

       This YANG extension is only indicative and optional to
       implement. Tools MAY ignore it completely or support just a
       subset of markup directives that are available for a given
       media type.";
        "- IANA: Media Types, 2016-12-21. Available [online]
        - [RFC 6838]( Media Type
          Specifications and Registration Procedures";

  }  // module ietf-yang-text-media-type