Blob Blame History Raw
<?xml version="1.0" encoding="UTF-8"?>
<submodule name="ietf-snmp-proxy"
           xmlns="urn:ietf:params:xml:ns:yang:yin:1"
           xmlns:snmp="urn:ietf:params:xml:ns:yang:ietf-snmp">
  <belongs-to module="ietf-snmp">
    <prefix value="snmp"/>
  </belongs-to>
  <include module="ietf-snmp-common"/>
  <include module="ietf-snmp-target"/>
  <organization>
    <text>IETF NETMOD (NETCONF Data Modeling Language) Working Group</text>
  </organization>
  <contact>
    <text>WG Web:   &lt;http://tools.ietf.org/wg/netmod/&gt;
WG List:  &lt;mailto:netmod@ietf.org&gt;

WG Chair: Thomas Nadeau
          &lt;mailto:tnadeau@lucidvision.com&gt;

WG Chair: Juergen Schoenwaelder
          &lt;mailto:j.schoenwaelder@jacobs-university.de&gt;

Editor:   Martin Bjorklund
          &lt;mailto:mbj@tail-f.com&gt;

Editor:   Juergen Schoenwaelder
          &lt;mailto:j.schoenwaelder@jacobs-university.de&gt;</text>
  </contact>
  <description>
    <text>This submodule contains a collection of YANG definitions
for configuring SNMP proxies.

Copyright (c) 2014 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
(http://trustee.ietf.org/license-info).

This version of this YANG module is part of RFC 7407; see
the RFC itself for full legal notices.</text>
  </description>
  <reference>
    <text>RFC 3413: Simple Network Management Protocol (SNMP)
  Applications</text>
  </reference>
  <revision date="2014-12-10">
    <description>
      <text>Initial revision.</text>
    </description>
    <reference>
      <text>RFC 7407: A YANG Data Model for SNMP Configuration</text>
    </reference>
  </revision>
  <feature name="proxy">
    <description>
      <text>A server implements this feature if it can act as an
SNMP proxy.</text>
    </description>
    <reference>
      <text>RFC 3413: Simple Network Management Protocol (SNMP)
  Applications</text>
    </reference>
  </feature>
  <augment target-node="/snmp:snmp">
    <if-feature name="snmp:proxy"/>
    <list name="proxy">
      <key value="name"/>
      <description>
        <text>List of proxy parameters.</text>
      </description>
      <reference>
        <text>RFC 3413: Simple Network Management Protocol (SNMP).
  Applications.
  SNMP-PROXY-MIB.snmpProxyTable</text>
      </reference>
      <leaf name="name">
        <type name="snmp:identifier"/>
        <description>
          <text>Identifies the proxy parameter entry.</text>
        </description>
        <reference>
          <text>RFC 3413: Simple Network Management Protocol (SNMP).
  Applications.
  SNMP-PROXY-MIB.snmpProxyName</text>
        </reference>
      </leaf>
      <leaf name="type">
        <type name="enumeration">
          <enum name="read">
            <value value="1"/>
          </enum>
          <enum name="write">
            <value value="2"/>
          </enum>
          <enum name="trap">
            <value value="3"/>
          </enum>
          <enum name="inform">
            <value value="4"/>
          </enum>
        </type>
        <mandatory value="true"/>
        <reference>
          <text>RFC 3413: Simple Network Management Protocol (SNMP).
  Applications.
  SNMP-PROXY-MIB.snmpProxyType</text>
        </reference>
      </leaf>
      <leaf name="context-engine-id">
        <type name="snmp:engine-id"/>
        <mandatory value="true"/>
        <reference>
          <text>RFC 3413: Simple Network Management Protocol (SNMP).
  Applications.
  SNMP-PROXY-MIB.snmpProxyContextEngineID</text>
        </reference>
      </leaf>
      <leaf name="context-name">
        <type name="snmp:context-name"/>
        <reference>
          <text>RFC 3413: Simple Network Management Protocol (SNMP).
  Applications.
  SNMP-PROXY-MIB.snmpProxyContextName</text>
        </reference>
      </leaf>
      <leaf name="target-params-in">
        <type name="snmp:identifier"/>
        <description>
          <text>The name of a target parameters list entry.

Implementations MAY restrict the values of this
leaf to be one of the available values of
/snmp/target-params/name in a valid configuration.</text>
        </description>
        <reference>
          <text>RFC 3413: Simple Network Management Protocol (SNMP).
  Applications.
  SNMP-PROXY-MIB.snmpProxyTargetParamsIn</text>
        </reference>
      </leaf>
      <leaf name="single-target-out">
        <when condition="../type = 'read' or ../type = 'write'"/>
        <type name="snmp:identifier"/>
        <description>
          <text>Implementations MAY restrict the values of this leaf
to be one of the available values of /snmp/target/name in
a valid configuration.</text>
        </description>
        <reference>
          <text>RFC 3413: Simple Network Management Protocol (SNMP).
  Applications.
  SNMP-PROXY-MIB.snmpProxySingleTargetOut</text>
        </reference>
      </leaf>
      <leaf name="multiple-target-out">
        <when condition="../type = 'trap' or ../type = 'inform'"/>
        <type name="snmp:tag-value"/>
        <description>
          <text>Implementations MAY restrict the values of this leaf
to be one of the available values of /snmp/target/tag in
a valid configuration.</text>
        </description>
        <reference>
          <text>RFC 3413: Simple Network Management Protocol (SNMP).
  Applications.
  SNMP-PROXY-MIB.snmpProxyMultipleTargetOut</text>
        </reference>
      </leaf>
    </list>
  </augment>
</submodule>