Gaurav Agrawal | 28920d8 | 2017-10-06 17:39:42 +0530 | [diff] [blame] | 1 | submodule ietf-snmp-ssh { |
| 2 | |
| 3 | belongs-to ietf-snmp { |
| 4 | prefix snmp; |
| 5 | } |
| 6 | |
| 7 | import ietf-inet-types { |
| 8 | prefix inet; |
| 9 | } |
| 10 | |
| 11 | include ietf-snmp-common; |
| 12 | include ietf-snmp-engine; |
| 13 | include ietf-snmp-target; |
| 14 | |
| 15 | organization |
| 16 | "IETF NETMOD (NETCONF Data Modeling Language) Working Group"; |
| 17 | |
| 18 | contact |
| 19 | "WG Web: <http://tools.ietf.org/wg/netmod/> |
| 20 | WG List: <mailto:netmod@ietf.org> |
| 21 | |
| 22 | WG Chair: Thomas Nadeau |
| 23 | <mailto:tnadeau@lucidvision.com> |
| 24 | |
| 25 | WG Chair: Juergen Schoenwaelder |
| 26 | <mailto:j.schoenwaelder@jacobs-university.de> |
| 27 | |
| 28 | Editor: Martin Bjorklund |
| 29 | <mailto:mbj@tail-f.com> |
| 30 | |
| 31 | Editor: Juergen Schoenwaelder |
| 32 | <mailto:j.schoenwaelder@jacobs-university.de>"; |
| 33 | |
| 34 | description |
| 35 | "This submodule contains a collection of YANG definitions for |
| 36 | configuring the Secure Shell Transport Model (SSHTM) |
| 37 | of SNMP. |
| 38 | |
| 39 | Copyright (c) 2014 IETF Trust and the persons identified as |
| 40 | authors of the code. All rights reserved. |
| 41 | |
| 42 | Redistribution and use in source and binary forms, with or |
| 43 | without modification, is permitted pursuant to, and subject |
| 44 | to the license terms contained in, the Simplified BSD License |
| 45 | set forth in Section 4.c of the IETF Trust's Legal Provisions |
| 46 | Relating to IETF Documents |
| 47 | (http://trustee.ietf.org/license-info). |
| 48 | |
| 49 | This version of this YANG module is part of RFC 7407; see |
| 50 | the RFC itself for full legal notices."; |
| 51 | |
| 52 | reference |
| 53 | "RFC 5592: Secure Shell Transport Model for the |
| 54 | Simple Network Management Protocol (SNMP)"; |
| 55 | |
| 56 | revision 2014-12-10 { |
| 57 | description |
| 58 | "Initial revision."; |
| 59 | reference |
| 60 | "RFC 7407: A YANG Data Model for SNMP Configuration"; |
| 61 | } |
| 62 | |
| 63 | feature sshtm { |
| 64 | description |
| 65 | "A server implements this feature if it supports the |
| 66 | Secure Shell Transport Model for SNMP."; |
| 67 | reference |
| 68 | "RFC 5592: Secure Shell Transport Model for the |
| 69 | Simple Network Management Protocol (SNMP)"; |
| 70 | } |
| 71 | |
| 72 | augment /snmp:snmp/snmp:engine/snmp:listen/snmp:transport { |
| 73 | if-feature sshtm; |
| 74 | case ssh { |
| 75 | container ssh { |
| 76 | description |
| 77 | "The IPv4 or IPv6 address and port to which the |
| 78 | engine listens for SNMP messages over SSH."; |
| 79 | |
| 80 | leaf ip { |
| 81 | type inet:ip-address; |
| 82 | mandatory true; |
| 83 | description |
| 84 | "The IPv4 or IPv6 address on which the engine listens |
| 85 | for SNMP messages over SSH."; |
| 86 | } |
| 87 | leaf port { |
| 88 | type inet:port-number; |
| 89 | description |
| 90 | "The TCP port on which the engine listens for SNMP |
| 91 | messages over SSH. |
| 92 | |
| 93 | If the port is not configured, an engine that |
| 94 | acts as a Command Responder uses port 5161, and |
| 95 | an engine that acts as a Notification Receiver |
| 96 | uses port 5162."; |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | augment /snmp:snmp/snmp:target/snmp:transport { |
| 103 | if-feature sshtm; |
| 104 | case ssh { |
| 105 | reference |
| 106 | "RFC 5592: Secure Shell Transport Model for the |
| 107 | Simple Network Management Protocol (SNMP). |
| 108 | SNMP-SSH-TM-MIB.snmpSSHDomain"; |
| 109 | container ssh { |
| 110 | leaf ip { |
| 111 | type inet:host; |
| 112 | mandatory true; |
| 113 | reference |
| 114 | "RFC 3413: Simple Network Management Protocol (SNMP). |
| 115 | Applications. |
| 116 | SNMP-TARGET-MIB.snmpTargetAddrTAddress |
| 117 | RFC 5592: Secure Shell Transport Model for the |
| 118 | Simple Network Management Protocol (SNMP). |
| 119 | SNMP-SSH-TM-MIB.SnmpSSHAddress"; |
| 120 | } |
| 121 | leaf port { |
| 122 | type inet:port-number; |
| 123 | default 5161; |
| 124 | reference |
| 125 | "RFC 3413: Simple Network Management Protocol (SNMP). |
| 126 | Applications. |
| 127 | SNMP-TARGET-MIB.snmpTargetAddrTAddress |
| 128 | RFC 5592: Secure Shell Transport Model for the |
| 129 | Simple Network Management Protocol (SNMP). |
| 130 | SNMP-SSH-TM-MIB.SnmpSSHAddress"; |
| 131 | } |
| 132 | leaf username { |
| 133 | type string; |
| 134 | reference |
| 135 | "RFC 3413: Simple Network Management Protocol (SNMP). |
| 136 | Applications. |
| 137 | SNMP-TARGET-MIB.snmpTargetAddrTAddress |
| 138 | RFC 5592: Secure Shell Transport Model for the |
| 139 | Simple Network Management Protocol (SNMP). |
| 140 | SNMP-SSH-TM-MIB.SnmpSSHAddress"; |
| 141 | } |
| 142 | } |
| 143 | } |
| 144 | } |
| 145 | } |