Blob Blame History Raw
<?xml version="1.0" encoding="UTF-8"?>
<submodule name="ietf-snmp-ssh"
           xmlns="urn:ietf:params:xml:ns:yang:yin:1"
           xmlns:snmp="urn:ietf:params:xml:ns:yang:ietf-snmp"
           xmlns:inet="urn:ietf:params:xml:ns:yang:ietf-inet-types">
  <belongs-to module="ietf-snmp">
    <prefix value="snmp"/>
  </belongs-to>
  <import module="ietf-inet-types">
    <prefix value="inet"/>
  </import>
  <include module="ietf-snmp-common"/>
  <include module="ietf-snmp-engine"/>
  <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 the Secure Shell Transport Model (SSHTM)
of SNMP.

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 5592: Secure Shell Transport Model for the
  Simple Network Management Protocol (SNMP)</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="sshtm">
    <description>
      <text>A server implements this feature if it supports the
Secure Shell Transport Model for SNMP.</text>
    </description>
    <reference>
      <text>RFC 5592: Secure Shell Transport Model for the
  Simple Network Management Protocol (SNMP)</text>
    </reference>
  </feature>
  <augment target-node="/snmp:snmp/snmp:engine/snmp:listen/snmp:transport">
    <if-feature name="sshtm"/>
    <case name="ssh">
      <container name="ssh">
        <description>
          <text>The IPv4 or IPv6 address and port to which the
engine listens for SNMP messages over SSH.</text>
        </description>
        <leaf name="ip">
          <type name="inet:ip-address"/>
          <mandatory value="true"/>
          <description>
            <text>The IPv4 or IPv6 address on which the engine listens
for SNMP messages over SSH.</text>
          </description>
        </leaf>
        <leaf name="port">
          <type name="inet:port-number"/>
          <description>
            <text>The TCP port on which the engine listens for SNMP
messages over SSH.

If the port is not configured, an engine that
acts as a Command Responder uses port 5161, and
an engine that acts as a Notification Receiver
uses port 5162.</text>
          </description>
        </leaf>
      </container>
    </case>
  </augment>
  <augment target-node="/snmp:snmp/snmp:target/snmp:transport">
    <if-feature name="sshtm"/>
    <case name="ssh">
      <reference>
        <text>RFC 5592: Secure Shell Transport Model for the
  Simple Network Management Protocol (SNMP).
  SNMP-SSH-TM-MIB.snmpSSHDomain</text>
      </reference>
      <container name="ssh">
        <leaf name="ip">
          <type name="inet:host"/>
          <mandatory value="true"/>
          <reference>
            <text>RFC 3413: Simple Network Management Protocol (SNMP).
  Applications.
  SNMP-TARGET-MIB.snmpTargetAddrTAddress
RFC 5592: Secure Shell Transport Model for the
  Simple Network Management Protocol (SNMP).
  SNMP-SSH-TM-MIB.SnmpSSHAddress</text>
          </reference>
        </leaf>
        <leaf name="port">
          <type name="inet:port-number"/>
          <default value="5161"/>
          <reference>
            <text>RFC 3413: Simple Network Management Protocol (SNMP).
  Applications.
  SNMP-TARGET-MIB.snmpTargetAddrTAddress
RFC 5592: Secure Shell Transport Model for the
  Simple Network Management Protocol (SNMP).
  SNMP-SSH-TM-MIB.SnmpSSHAddress</text>
          </reference>
        </leaf>
        <leaf name="username">
          <type name="string"/>
          <reference>
            <text>RFC 3413: Simple Network Management Protocol (SNMP).
  Applications.
  SNMP-TARGET-MIB.snmpTargetAddrTAddress
RFC 5592: Secure Shell Transport Model for the
  Simple Network Management Protocol (SNMP).
  SNMP-SSH-TM-MIB.SnmpSSHAddress</text>
          </reference>
        </leaf>
      </container>
    </case>
  </augment>
</submodule>