Merge "Remove unused southbound config-lisp.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     grouping cache-stats {
46         leaf hits {
47             type int64;
48         }
49         leaf misses {
50             type int64;
51         }
52     }
53
54     rpc send-map-request {
55         input {
56             uses lisp-proto:MapRequestMessage;
57         }
58     }
59
60     rpc send-map-reply {
61         input {
62             uses lisp-proto:MapReplyMessage;
63         }
64     }
65
66     rpc send-map-register {
67         input {
68             uses lisp-proto:MapRegisterMessage;
69         }
70     }
71
72     rpc send-map-notify {
73         input {
74             uses lisp-proto:MapNotifyMessage;
75         }
76     }
77
78     rpc get-stats {
79         output {
80             container control-message-stats {
81                 uses ctrl-msg-stats;
82             }
83             container map-register-cache-stats {
84                 uses cache-stats;
85             }
86         }
87     }
88
89     rpc reset-stats {
90     }
91 }