Remove the last remnants of the CSS
[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 odl-lisp-proto { prefix lisp-proto; revision-date 2015-11-05; }
8
9     contact "Lorand Jakab <lojakab@cisco.com";
10
11     description
12         "API for the LISP southbound module";
13
14     revision "2015-09-04" {
15         description "Initial version. Some content originally from lisp-proto.yang";
16     }
17
18     grouping ctrl-msg-stats {
19         leaf rx-unknown {
20             type int64;
21         }
22         leaf tx-errors {
23             type int64;
24         }
25         list control-message {
26             ordered-by "user";
27             leaf msg-type {
28                 type lisp-proto:message-type;
29             }
30             leaf rx-count {
31                 type int64;
32             }
33             leaf tx-count {
34                 type int64;
35             }
36         }
37     }
38
39     grouping cache-stats {
40         leaf hits {
41             type int64;
42         }
43         leaf misses {
44             type int64;
45         }
46     }
47
48     rpc send-map-request {
49         input {
50             uses lisp-proto:MapRequestMessage;
51         }
52     }
53
54     rpc send-map-reply {
55         input {
56             uses lisp-proto:MapReplyMessage;
57         }
58     }
59
60     rpc send-map-register {
61         input {
62             uses lisp-proto:MapRegisterMessage;
63         }
64     }
65
66     rpc send-map-notify {
67         input {
68             uses lisp-proto:MapNotifyMessage;
69         }
70     }
71
72     rpc get-stats {
73         output {
74             container control-message-stats {
75                 uses ctrl-msg-stats;
76             }
77             container map-register-cache-stats {
78                 uses cache-stats;
79             }
80         }
81     }
82
83     rpc reset-stats {
84     }
85 }