blob: 3bf9699c404e0ecf87f9150a8b884fae6b177f61 [file] [log] [blame]
Gaurav Agrawal28920d82017-10-06 17:39:42 +05301submodule ietf-snmp-tsm {
2
3 belongs-to ietf-snmp {
4 prefix snmp;
5 }
6
7 include ietf-snmp-common;
8 include ietf-snmp-target;
9 include ietf-snmp-proxy;
10
11 organization
12 "IETF NETMOD (NETCONF Data Modeling Language) Working Group";
13
14 contact
15 "WG Web: <http://tools.ietf.org/wg/netmod/>
16 WG List: <mailto:netmod@ietf.org>
17
18 WG Chair: Thomas Nadeau
19 <mailto:tnadeau@lucidvision.com>
20
21 WG Chair: Juergen Schoenwaelder
22 <mailto:j.schoenwaelder@jacobs-university.de>
23
24 Editor: Martin Bjorklund
25 <mailto:mbj@tail-f.com>
26
27 Editor: Juergen Schoenwaelder
28 <mailto:j.schoenwaelder@jacobs-university.de>";
29
30 description
31 "This submodule contains a collection of YANG definitions for
32 configuring the Transport Security Model (TSM) of SNMP.
33
34 Copyright (c) 2014 IETF Trust and the persons identified as
35 authors of the code. All rights reserved.
36
37 Redistribution and use in source and binary forms, with or
38 without modification, is permitted pursuant to, and subject
39 to the license terms contained in, the Simplified BSD License
40 set forth in Section 4.c of the IETF Trust's Legal Provisions
41 Relating to IETF Documents
42 (http://trustee.ietf.org/license-info).
43
44 This version of this YANG module is part of RFC 7407; see
45 the RFC itself for full legal notices.";
46
47 reference
48 "RFC 5591: Transport Security Model for the
49 Simple Network Management Protocol (SNMP)";
50
51 revision 2014-12-10 {
52 description
53 "Initial revision.";
54 reference
55 "RFC 7407: A YANG Data Model for SNMP Configuration";
56 }
57
58 feature tsm {
59 description
60 "A server implements this feature if it supports the
61 Transport Security Model for SNMP.";
62 reference
63 "RFC 5591: Transport Security Model for the
64 Simple Network Management Protocol (SNMP)";
65 }
66 augment /snmp:snmp {
67 if-feature tsm;
68 container tsm {
69 description
70 "Configuration of the Transport Security Model.";
71
72 leaf use-prefix {
73 type boolean;
74 default false;
75 reference
76 "RFC 5591: Transport Security Model for the Simple
77 Network Management Protocol (SNMP).
78 SNMP-TSM-MIB.snmpTsmConfigurationUsePrefix";
79 }
80 }
81 }
82
83 grouping tsm-target-params {
84 container tsm {
85 description
86 "Transport-based security SNMPv3 parameters type.
87
88 Represents snmpTargetParamsMPModel '3' and
89 snmpTargetParamsSecurityModel '4'.";
90 leaf security-name {
91 type snmp:security-name;
92 mandatory true;
93 reference
94 "RFC 3413: Simple Network Management Protocol (SNMP).
95 Applications.
96 SNMP-TARGET-MIB.snmpTargetParamsSecurityName";
97 }
98 leaf security-level {
99 type snmp:security-level;
100 mandatory true;
101 reference
102 "RFC 3413: Simple Network Management Protocol (SNMP).
103 Applications.
104 SNMP-TARGET-MIB.snmpTargetParamsSecurityLevel";
105 }
106 }
107 }
108
109 augment /snmp:snmp/snmp:target-params/snmp:params {
110 if-feature tsm;
111 case tsm {
112 uses tsm-target-params;
113 }
114 }
115
116}