Blame tests/schema/yang/ietf/ietf-snmp-proxy.yang

Packit 8fb591
submodule ietf-snmp-proxy {
Packit 8fb591
Packit 8fb591
  belongs-to ietf-snmp {
Packit 8fb591
    prefix snmp;
Packit 8fb591
  }
Packit 8fb591
Packit 8fb591
  include ietf-snmp-common;
Packit 8fb591
  include ietf-snmp-target;
Packit 8fb591
Packit 8fb591
  organization
Packit 8fb591
    "IETF NETMOD (NETCONF Data Modeling Language) Working Group";
Packit 8fb591
Packit 8fb591
  contact
Packit 8fb591
    "WG Web:   <http://tools.ietf.org/wg/netmod/>
Packit 8fb591
     WG List:  <mailto:netmod@ietf.org>
Packit 8fb591
Packit 8fb591
     WG Chair: Thomas Nadeau
Packit 8fb591
               <mailto:tnadeau@lucidvision.com>
Packit 8fb591
Packit 8fb591
     WG Chair: Juergen Schoenwaelder
Packit 8fb591
               <mailto:j.schoenwaelder@jacobs-university.de>
Packit 8fb591
Packit 8fb591
     Editor:   Martin Bjorklund
Packit 8fb591
               <mailto:mbj@tail-f.com>
Packit 8fb591
Packit 8fb591
     Editor:   Juergen Schoenwaelder
Packit 8fb591
               <mailto:j.schoenwaelder@jacobs-university.de>";
Packit 8fb591
Packit 8fb591
  description
Packit 8fb591
    "This submodule contains a collection of YANG definitions
Packit 8fb591
     for configuring SNMP proxies.
Packit 8fb591
Packit 8fb591
     Copyright (c) 2014 IETF Trust and the persons identified as
Packit 8fb591
     authors of the code.  All rights reserved.
Packit 8fb591
Packit 8fb591
     Redistribution and use in source and binary forms, with or
Packit 8fb591
     without modification, is permitted pursuant to, and subject
Packit 8fb591
     to the license terms contained in, the Simplified BSD License
Packit 8fb591
     set forth in Section 4.c of the IETF Trust's Legal Provisions
Packit 8fb591
     Relating to IETF Documents
Packit 8fb591
     (http://trustee.ietf.org/license-info).
Packit 8fb591
Packit 8fb591
     This version of this YANG module is part of RFC 7407; see
Packit 8fb591
     the RFC itself for full legal notices.";
Packit 8fb591
  reference
Packit 8fb591
    "RFC 3413: Simple Network Management Protocol (SNMP)
Packit 8fb591
       Applications";
Packit 8fb591
Packit 8fb591
  revision 2014-12-10 {
Packit 8fb591
    description
Packit 8fb591
      "Initial revision.";
Packit 8fb591
    reference
Packit 8fb591
      "RFC 7407: A YANG Data Model for SNMP Configuration";
Packit 8fb591
  }
Packit 8fb591
Packit 8fb591
  feature proxy {
Packit 8fb591
    description
Packit 8fb591
      "A server implements this feature if it can act as an
Packit 8fb591
      SNMP proxy.";
Packit 8fb591
    reference
Packit 8fb591
      "RFC 3413: Simple Network Management Protocol (SNMP)
Packit 8fb591
         Applications";
Packit 8fb591
  }
Packit 8fb591
Packit 8fb591
  augment /snmp:snmp {
Packit 8fb591
    if-feature snmp:proxy;
Packit 8fb591
Packit 8fb591
    list proxy {
Packit 8fb591
      key name;
Packit 8fb591
Packit 8fb591
      description
Packit 8fb591
        "List of proxy parameters.";
Packit 8fb591
      reference
Packit 8fb591
        "RFC 3413: Simple Network Management Protocol (SNMP).
Packit 8fb591
           Applications.
Packit 8fb591
           SNMP-PROXY-MIB.snmpProxyTable";
Packit 8fb591
Packit 8fb591
      leaf name {
Packit 8fb591
        type snmp:identifier;
Packit 8fb591
        description
Packit 8fb591
          "Identifies the proxy parameter entry.";
Packit 8fb591
        reference
Packit 8fb591
          "RFC 3413: Simple Network Management Protocol (SNMP).
Packit 8fb591
             Applications.
Packit 8fb591
             SNMP-PROXY-MIB.snmpProxyName";
Packit 8fb591
      }
Packit 8fb591
      leaf type {
Packit 8fb591
        type enumeration {
Packit 8fb591
          enum read { value 1; }
Packit 8fb591
          enum write { value 2; }
Packit 8fb591
          enum trap { value 3; }
Packit 8fb591
          enum inform { value 4; }
Packit 8fb591
        }
Packit 8fb591
        mandatory true;
Packit 8fb591
        reference
Packit 8fb591
          "RFC 3413: Simple Network Management Protocol (SNMP).
Packit 8fb591
             Applications.
Packit 8fb591
             SNMP-PROXY-MIB.snmpProxyType";
Packit 8fb591
      }
Packit 8fb591
      leaf context-engine-id {
Packit 8fb591
        type snmp:engine-id;
Packit 8fb591
        mandatory true;
Packit 8fb591
        reference
Packit 8fb591
          "RFC 3413: Simple Network Management Protocol (SNMP).
Packit 8fb591
             Applications.
Packit 8fb591
             SNMP-PROXY-MIB.snmpProxyContextEngineID";
Packit 8fb591
      }
Packit 8fb591
      leaf context-name {
Packit 8fb591
        type snmp:context-name;
Packit 8fb591
        reference
Packit 8fb591
          "RFC 3413: Simple Network Management Protocol (SNMP).
Packit 8fb591
             Applications.
Packit 8fb591
             SNMP-PROXY-MIB.snmpProxyContextName";
Packit 8fb591
      }
Packit 8fb591
      leaf target-params-in {
Packit 8fb591
        type snmp:identifier;
Packit 8fb591
        description
Packit 8fb591
          "The name of a target parameters list entry.
Packit 8fb591
Packit 8fb591
           Implementations MAY restrict the values of this
Packit 8fb591
           leaf to be one of the available values of
Packit 8fb591
           /snmp/target-params/name in a valid configuration.";
Packit 8fb591
        reference
Packit 8fb591
          "RFC 3413: Simple Network Management Protocol (SNMP).
Packit 8fb591
             Applications.
Packit 8fb591
             SNMP-PROXY-MIB.snmpProxyTargetParamsIn";
Packit 8fb591
      }
Packit 8fb591
      leaf single-target-out {
Packit 8fb591
        when "../type = 'read' or ../type = 'write'";
Packit 8fb591
        type snmp:identifier;
Packit 8fb591
        description
Packit 8fb591
          "Implementations MAY restrict the values of this leaf
Packit 8fb591
           to be one of the available values of /snmp/target/name in
Packit 8fb591
           a valid configuration.";
Packit 8fb591
        reference
Packit 8fb591
          "RFC 3413: Simple Network Management Protocol (SNMP).
Packit 8fb591
             Applications.
Packit 8fb591
             SNMP-PROXY-MIB.snmpProxySingleTargetOut";
Packit 8fb591
      }
Packit 8fb591
Packit 8fb591
      leaf multiple-target-out {
Packit 8fb591
        when "../type = 'trap' or ../type = 'inform'";
Packit 8fb591
        type snmp:tag-value;
Packit 8fb591
        description
Packit 8fb591
          "Implementations MAY restrict the values of this leaf
Packit 8fb591
           to be one of the available values of /snmp/target/tag in
Packit 8fb591
           a valid configuration.";
Packit 8fb591
        reference
Packit 8fb591
          "RFC 3413: Simple Network Management Protocol (SNMP).
Packit 8fb591
             Applications.
Packit 8fb591
             SNMP-PROXY-MIB.snmpProxyMultipleTargetOut";
Packit 8fb591
      }
Packit 8fb591
    }
Packit 8fb591
  }
Packit 8fb591
}