Blob Blame History Raw
<?xml version="1.0" encoding="UTF-8"?>
<submodule name="ietf-snmp-common"
           xmlns="urn:ietf:params:xml:ns:yang:yin:1"
           xmlns:snmp="urn:ietf:params:xml:ns:yang:ietf-snmp"
           xmlns:yang="urn:ietf:params:xml:ns:yang:ietf-yang-types">
  <belongs-to module="ietf-snmp">
    <prefix value="snmp"/>
  </belongs-to>
  <import module="ietf-yang-types">
    <prefix value="yang"/>
  </import>
  <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 common YANG definitions
for configuring SNMP engines.

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>
  <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>
  <typedef name="admin-string">
    <type name="string">
      <length value="0..255"/>
    </type>
    <description>
      <text>Represents SnmpAdminString as defined in RFC 3411.

Note that the size of an SnmpAdminString is measured in
octets, not characters.</text>
    </description>
    <reference>
      <text>RFC 3411: An Architecture for Describing Simple Network
  Management Protocol (SNMP) Management Frameworks.
  SNMP-FRAMEWORK-MIB.SnmpAdminString</text>
    </reference>
  </typedef>
  <typedef name="identifier">
    <type name="admin-string">
      <length value="1..32"/>
    </type>
    <description>
      <text>Identifiers are used to name items in the SNMP configuration
datastore.</text>
    </description>
  </typedef>
  <typedef name="context-name">
    <type name="admin-string">
      <length value="0..32"/>
    </type>
    <description>
      <text>The context type represents an SNMP context name.</text>
    </description>
    <reference>
      <text>RFC 3411: An Architecture for Describing Simple Network
  Management Protocol (SNMP) Management Frameworks</text>
    </reference>
  </typedef>
  <typedef name="security-name">
    <type name="admin-string">
      <length value="1..32"/>
    </type>
    <description>
      <text>The security-name type represents an SNMP security name.</text>
    </description>
    <reference>
      <text>RFC 3411: An Architecture for Describing Simple Network
  Management Protocol (SNMP) Management Frameworks</text>
    </reference>
  </typedef>
  <typedef name="security-model">
    <type name="union">
      <type name="enumeration">
        <enum name="v1">
          <value value="1"/>
        </enum>
        <enum name="v2c">
          <value value="2"/>
        </enum>
        <enum name="usm">
          <value value="3"/>
        </enum>
        <enum name="tsm">
          <value value="4"/>
        </enum>
      </type>
      <type name="int32">
        <range value="1..2147483647"/>
      </type>
    </type>
    <reference>
      <text>RFC 3411: An Architecture for Describing Simple Network
  Management Protocol (SNMP) Management Frameworks</text>
    </reference>
  </typedef>
  <typedef name="security-model-or-any">
    <type name="union">
      <type name="enumeration">
        <enum name="any">
          <value value="0"/>
        </enum>
      </type>
      <type name="security-model"/>
    </type>
    <reference>
      <text>RFC 3411: An Architecture for Describing Simple Network
  Management Protocol (SNMP) Management Frameworks</text>
    </reference>
  </typedef>
  <typedef name="security-level">
    <type name="enumeration">
      <enum name="no-auth-no-priv">
        <value value="1"/>
      </enum>
      <enum name="auth-no-priv">
        <value value="2"/>
      </enum>
      <enum name="auth-priv">
        <value value="3"/>
      </enum>
    </type>
    <reference>
      <text>RFC 3411: An Architecture for Describing Simple Network
  Management Protocol (SNMP) Management Frameworks</text>
    </reference>
  </typedef>
  <typedef name="engine-id">
    <type name="yang:hex-string">
      <pattern value="([0-9a-fA-F]){2}(:([0-9a-fA-F]){2}){4,31}"/>
    </type>
    <description>
      <text>The engine ID specified as a list of colon-specified
hexadecimal octets, e.g., '80:00:02:b8:04:61:62:63'.</text>
    </description>
    <reference>
      <text>RFC 3411: An Architecture for Describing Simple Network
  Management Protocol (SNMP) Management Frameworks</text>
    </reference>
  </typedef>
  <typedef name="wildcard-object-identifier">
    <type name="string"/>
    <description>
      <text>The wildcard-object-identifier type represents an SNMP object
identifier where subidentifiers can be given either as a label,
in numeric form, or a wildcard, represented by an asterisk
('*').</text>
    </description>
  </typedef>
  <typedef name="tag-value">
    <type name="string">
      <length value="0..255"/>
    </type>
    <description>
      <text>Represents SnmpTagValue as defined in RFC 3413.

Note that the size of an SnmpTagValue is measured in
octets, not characters.</text>
    </description>
    <reference>
      <text>RFC 3413: Simple Network Management Protocol (SNMP)
  Applications.
  SNMP-TARGET-MIB.SnmpTagValue</text>
    </reference>
  </typedef>
  <container name="snmp">
    <description>
      <text>Top-level container for SNMP-related configuration and
status objects.</text>
    </description>
  </container>
</submodule>