Upgrade ietf-{inet,yang}-types to 2013-07-15
[vpnservice.git] / fibmanager / fibmanager-api / src / main / yang / fib-rpc.yang
1 module fib-rpc {\r
2     namespace "urn:opendaylight:vpnservice:fib:rpc";\r
3     prefix "fib-rpc";\r
4 \r
5     import ietf-inet-types {\r
6         prefix inet;\r
7         revision-date "2013-07-15";\r
8     }\r
9 \r
10     import opendaylight-flow-types {\r
11         prefix offlow;\r
12         revision-date "2013-10-26";\r
13     }\r
14 \r
15     revision "2016-01-21" {\r
16         description "FIB Servicer RPC Module";\r
17     }\r
18 \r
19     /* RPCs */\r
20 \r
21     rpc create-fib-entry {\r
22         description "to install FIB/LFIB/TST routes on specified dpn with given instructions";\r
23         input {\r
24             leaf source-dpid {\r
25                 type uint64;\r
26             }\r
27             leaf vpn-name {\r
28                 type string;\r
29             }\r
30             leaf service-id {\r
31                 type uint32;\r
32             }\r
33             leaf ip-address {\r
34                 type string;\r
35             }\r
36             uses offlow:instruction-list;\r
37         }\r
38     }\r
39 \r
40     rpc remove-fib-entry {\r
41         description "to remove FIB/LFIB/TST routes from specified dpn";\r
42         input {\r
43             leaf source-dpid {\r
44                 type uint64;\r
45             }\r
46             leaf vpn-name {\r
47                 type string;\r
48             }\r
49             leaf service-id {\r
50                 type uint32;\r
51             }\r
52             leaf ip-address {\r
53                 type string;\r
54             }\r
55         }\r
56     }\r
57 }