Merge branch 'master' into topic/ietf_yang
[lispflowmapping.git] / mappingservice / api / src / main / yang / odl-lisp-sb.yang
1 module odl-lisp-sb {
2
3     yang-version 1;
4     namespace "urn:opendaylight:lfm:lisp-sb";
5     prefix "lisp-sb";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import odl-lisp-proto { prefix lisp-proto; revision-date 2015-11-05; }
9
10     contact "Lorand Jakab <lojakab@cisco.com";
11
12     description
13         "API for the LISP southbound module";
14
15     revision "2015-09-04" {
16         description "Initial version. Some content originally from lisp-proto.yang";
17     }
18
19     identity lisp-sb {
20         base "config:service-type";
21         config:java-class "org.opendaylight.lispflowmapping.type.sbplugin.IConfigLispSouthboundPlugin";
22     }
23
24     grouping ctrl-msg-stats {
25         leaf rx-unknown {
26             type int64;
27         }
28         leaf tx-errors {
29             type int64;
30         }
31         list control-message {
32             ordered-by "user";
33             leaf msg-type {
34                 type lisp-proto:message-type;
35             }
36             leaf rx-count {
37                 type int64;
38             }
39             leaf tx-count {
40                 type int64;
41             }
42         }
43     }
44
45     rpc send-map-request {
46         input {
47             uses lisp-proto:MapRequestMessage;
48         }
49     }
50
51     rpc send-map-reply {
52         input {
53             uses lisp-proto:MapReplyMessage;
54         }
55     }
56
57     rpc send-map-register {
58         input {
59             uses lisp-proto:MapRegisterMessage;
60         }
61     }
62
63     rpc send-map-notify {
64         input {
65             uses lisp-proto:MapNotifyMessage;
66         }
67     }
68
69     rpc get-stats {
70         output {
71             container control-message-stats {
72                 uses ctrl-msg-stats;
73             }
74         }
75     }
76
77     rpc reset-stats {
78     }
79 }