Gaurav Agrawal | 28920d8 | 2017-10-06 17:39:42 +0530 | [diff] [blame] | 1 | submodule ietf-snmp-proxy { |
| 2 | |
| 3 | belongs-to ietf-snmp { |
| 4 | prefix snmp; |
| 5 | } |
| 6 | |
| 7 | include ietf-snmp-common; |
| 8 | include ietf-snmp-target; |
| 9 | |
| 10 | organization |
| 11 | "IETF NETMOD (NETCONF Data Modeling Language) Working Group"; |
| 12 | |
| 13 | contact |
| 14 | "WG Web: <http://tools.ietf.org/wg/netmod/> |
| 15 | WG List: <mailto:netmod@ietf.org> |
| 16 | |
| 17 | WG Chair: Thomas Nadeau |
| 18 | <mailto:tnadeau@lucidvision.com> |
| 19 | |
| 20 | WG Chair: Juergen Schoenwaelder |
| 21 | <mailto:j.schoenwaelder@jacobs-university.de> |
| 22 | |
| 23 | Editor: Martin Bjorklund |
| 24 | <mailto:mbj@tail-f.com> |
| 25 | |
| 26 | Editor: Juergen Schoenwaelder |
| 27 | <mailto:j.schoenwaelder@jacobs-university.de>"; |
| 28 | |
| 29 | description |
| 30 | "This submodule contains a collection of YANG definitions |
| 31 | for configuring SNMP proxies. |
| 32 | |
| 33 | Copyright (c) 2014 IETF Trust and the persons identified as |
| 34 | authors of the code. All rights reserved. |
| 35 | |
| 36 | Redistribution and use in source and binary forms, with or |
| 37 | without modification, is permitted pursuant to, and subject |
| 38 | to the license terms contained in, the Simplified BSD License |
| 39 | set forth in Section 4.c of the IETF Trust's Legal Provisions |
| 40 | Relating to IETF Documents |
| 41 | (http://trustee.ietf.org/license-info). |
| 42 | |
| 43 | This version of this YANG module is part of RFC 7407; see |
| 44 | the RFC itself for full legal notices."; |
| 45 | reference |
| 46 | "RFC 3413: Simple Network Management Protocol (SNMP) |
| 47 | Applications"; |
| 48 | |
| 49 | revision 2014-12-10 { |
| 50 | description |
| 51 | "Initial revision."; |
| 52 | reference |
| 53 | "RFC 7407: A YANG Data Model for SNMP Configuration"; |
| 54 | } |
| 55 | |
| 56 | feature proxy { |
| 57 | description |
| 58 | "A server implements this feature if it can act as an |
| 59 | SNMP proxy."; |
| 60 | reference |
| 61 | "RFC 3413: Simple Network Management Protocol (SNMP) |
| 62 | Applications"; |
| 63 | } |
| 64 | |
| 65 | augment /snmp:snmp { |
| 66 | if-feature snmp:proxy; |
| 67 | |
| 68 | list proxy { |
| 69 | key name; |
| 70 | |
| 71 | description |
| 72 | "List of proxy parameters."; |
| 73 | reference |
| 74 | "RFC 3413: Simple Network Management Protocol (SNMP). |
| 75 | Applications. |
| 76 | SNMP-PROXY-MIB.snmpProxyTable"; |
| 77 | |
| 78 | leaf name { |
| 79 | type snmp:identifier; |
| 80 | description |
| 81 | "Identifies the proxy parameter entry."; |
| 82 | reference |
| 83 | "RFC 3413: Simple Network Management Protocol (SNMP). |
| 84 | Applications. |
| 85 | SNMP-PROXY-MIB.snmpProxyName"; |
| 86 | } |
| 87 | leaf type { |
| 88 | type enumeration { |
| 89 | enum read { value 1; } |
| 90 | enum write { value 2; } |
| 91 | enum trap { value 3; } |
| 92 | enum inform { value 4; } |
| 93 | } |
| 94 | mandatory true; |
| 95 | reference |
| 96 | "RFC 3413: Simple Network Management Protocol (SNMP). |
| 97 | Applications. |
| 98 | SNMP-PROXY-MIB.snmpProxyType"; |
| 99 | } |
| 100 | leaf context-engine-id { |
| 101 | type snmp:engine-id; |
| 102 | mandatory true; |
| 103 | reference |
| 104 | "RFC 3413: Simple Network Management Protocol (SNMP). |
| 105 | Applications. |
| 106 | SNMP-PROXY-MIB.snmpProxyContextEngineID"; |
| 107 | } |
| 108 | leaf context-name { |
| 109 | type snmp:context-name; |
| 110 | reference |
| 111 | "RFC 3413: Simple Network Management Protocol (SNMP). |
| 112 | Applications. |
| 113 | SNMP-PROXY-MIB.snmpProxyContextName"; |
| 114 | } |
| 115 | leaf target-params-in { |
| 116 | type snmp:identifier; |
| 117 | description |
| 118 | "The name of a target parameters list entry. |
| 119 | |
| 120 | Implementations MAY restrict the values of this |
| 121 | leaf to be one of the available values of |
| 122 | /snmp/target-params/name in a valid configuration."; |
| 123 | reference |
| 124 | "RFC 3413: Simple Network Management Protocol (SNMP). |
| 125 | Applications. |
| 126 | SNMP-PROXY-MIB.snmpProxyTargetParamsIn"; |
| 127 | } |
| 128 | leaf single-target-out { |
| 129 | when "../type = 'read' or ../type = 'write'"; |
| 130 | type snmp:identifier; |
| 131 | description |
| 132 | "Implementations MAY restrict the values of this leaf |
| 133 | to be one of the available values of /snmp/target/name in |
| 134 | a valid configuration."; |
| 135 | reference |
| 136 | "RFC 3413: Simple Network Management Protocol (SNMP). |
| 137 | Applications. |
| 138 | SNMP-PROXY-MIB.snmpProxySingleTargetOut"; |
| 139 | } |
| 140 | |
| 141 | leaf multiple-target-out { |
| 142 | when "../type = 'trap' or ../type = 'inform'"; |
| 143 | type snmp:tag-value; |
| 144 | description |
| 145 | "Implementations MAY restrict the values of this leaf |
| 146 | to be one of the available values of /snmp/target/tag in |
| 147 | a valid configuration."; |
| 148 | reference |
| 149 | "RFC 3413: Simple Network Management Protocol (SNMP). |
| 150 | Applications. |
| 151 | SNMP-PROXY-MIB.snmpProxyMultipleTargetOut"; |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 | } |