blob: 7123f91783e035d4ddf492f4ac0aea57e51f3f64 [file] [log] [blame]
Vidyashree Rama72719fa2016-07-15 14:06:56 +05301module event {
2
3 namespace "http://example.com/event";
4 prefix "ev";
5
6 augment /snmp:snmp/snmp:engine/snmp:listen/snmp:transport {
7 if-feature tlstm;
8 case tls {
9 container tls {
10 description
11 "A list of IPv4 and IPv6 addresses and ports to which the
12 engine listens for SNMP messages over TLS.";
13 leaf ip {
14 type inet:ip-address;
15 mandatory true;
16 description
17 "The IPv4 or IPv6 address on which the engine listens
18 for SNMP messages over TLS.";
19 }
20 leaf port {
21 type inet:port-number;
22 description
23 "The TCP port on which the engine listens for SNMP
24 messages over TLS.
25 If the port is not configured, an engine that
26 acts as a Command Responder uses port 10161, and
27 an engine that acts as a Notification Receiver
28 uses port 10162.";
29 }
30 }
31 }
32 case dtls {
33 container dtls1 {
34 description
35 "A list of IPv4 and IPv6 addresses and ports to which the
36 engine listens for SNMP messages over DTLS.";
37 leaf ip {
38 type inet:ip-address;
39 mandatory true;
40 description
41 "The IPv4 or IPv6 address on which the engine listens
42 for SNMP messages over DTLS.";
43 }
44 leaf port {
45 type inet:port-number;
46 description
47 "The UDP port on which the engine listens for SNMP
48 messages over DTLS.
49 If the port is not configured, an engine that
50 acts as a Command Responder uses port 10161, and
51 an engine that acts as a Notification Receiver
52 uses port 10162.";
53 }
54 }
55 }
56 }
57}
58