tailf-meta-extensions

This submodule defines Tail-f YANG meta extensions statements.

  • Version: 2013-11-07

    tailf-meta-extensions@2013-11-07


    
      submodule tailf-meta-extensions {
    
        yang-version 1;
    
        belongs-to tailf-common {
            prefix tailf;
        }
    
        organization "Tail-f Systems";
    
        description
          "This submodule defines Tail-f YANG meta extensions statements.";
    
        revision "2013-11-07" {
          description
            "Released as part of ConfD-5.0.
    
           Added tailf:occurrence.";
        }
    
        revision "2010-08-19" {
          description
            "Released as part of ConfD-3.3.1.
    
           Added tailf:snmp-identifier.";
        }
    
        revision "2010-03-18" {
          description
            "Released as part of ConfD-3.2.";
        }
    
    
        typedef identifier {
          type string {
            pattern "[A-Za-z_][A-Za-z0-9_-]*";
          }
        }
    
        typedef snmp-identifier {
          type string {
            pattern
              "[A-Za-z_][A-Za-z0-9_-]*(:[A-Za-z_][A-Za-z0-9_-]*)*";
          }
        }
    
        typedef tailf-oid {
          type string {
            pattern
              "(([0-1](\.[1-3]?[0-9]))"
                + "|(2.(0|([1-9]\d*)))"
                + "|([A-Za-z_][A-Za-z0-9_-]*))?"
                + "(\.(0|([1-9]\d*)))+";
          }
        }
    
        extension use-in {
          tailf:arg-type {
            type "string";
          }
          tailf:use-in "extension";
          tailf:occurence "*";
          argument "name" {
            yin-element false;
          }
          description
            "Specifies in which statements a particular extension statement can be
          used.";
        }
    
        extension substatement {
          tailf:arg-type {
            type "string";
          }
          tailf:use-in "extension";
          tailf:occurence "*";
          tailf:substatement "tailf:occurence";
          argument "name" {
            yin-element false;
          }
          description
            "Specifies which statements can occur as substatement to the
          given statement.";
        }
    
        extension arg-type {
          tailf:use-in "argument";
          tailf:substatement "type" {
            tailf:occurence "1";
          }
          tailf:substatement "default";
          description
            "Specifies the type of the argument.";
        }
    
        extension occurence {
          tailf:arg-type {
            type "enumeration" {
              enum "?" {
                description "The extenstion may be given zero or one time.
    This is the default.";
              }
              enum "*" {
                description "The extenstion may be given zero or multiple times.";
              }
              enum "+" {
                description "The extenstion must be given at least once.";
              }
              enum "1" {
                description "The extenstion must be given exactly once.";
              }
            }
          }
          tailf:use-in "extension";
          argument "value" {
            yin-element false;
          }
          description
            "Specifices how an extension statement may be used.
    
           If this statement is given as a substatement to 'extension',
           it applies to all 'use-in' statements.
    
           If this statement is given as a substatement to 'tailf:substatement',
           it applies to this substatement.";
        }
      }  // submodule tailf-meta-extensions
    

© 2023 YumaWorks, Inc. All rights reserved.