-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathecho-server.yang
54 lines (38 loc) · 1.1 KB
/
echo-server.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
module echo-server {
yang-version 1;
namespace
"http://netconfcentral.org/ns/echo-server";
prefix echo-server;
description
"This yang module describes states and services of a UDP based echo
server, which echos back message sent by clients and also keeps
track of client served. Operational states of this server can be accessed
via REST API. This server also implements notification service by
which arrival of echo from a new client can be informed asynchronously";
grouping echo-client {
leaf client-ip {
type string;
}
leaf last-echo-time {
type string;
}
leaf echo-count {
type uint32;
}
}
container echo-server {
config false;
leaf client-count {
type uint32;
}
list clients {
key client-ip;
uses echo-client;
}
}
notification new-client {
description
"Indicates arrival of echo-request from new client.";
uses echo-client;
}
}