68083d6b8d854f3cfd7e4b502a620ba807fdb0b7
[vpnservice.git] / nexthopmgr / nexthopmgr-api / src / main / yang / l3nexthop.yang
1
2
3 module l3nexthop {
4     namespace "urn:opendaylight:vpnservice:l3nexthop";
5     prefix l3nexthop;
6
7     revision "2015-04-09" {
8         description "L3 NextHop module";
9     }
10
11     container l3nexthop {
12         config false;
13         list vpnNexthops{
14             key "vpnId";
15             leaf vpnId {type uint32;}
16             list vpnNexthop{
17                 key  "IpAddress";
18                 leaf IpAddress {type string;}
19                 leaf egressPointer {type uint32;}
20             }
21         }
22         list tunnelNexthops{
23             key "dpnId";
24             leaf dpnId {type uint64;}
25             list tunnelNexthop{
26                 key  "IpAddress";
27                 leaf IpAddress {type string;}
28                 leaf egressPointer {type uint32;}
29             }
30         }
31     }
32
33     rpc getEgressPointer {
34         description "returns egress pointer, an OF Group Id";
35         input {
36             leaf dpnId {type uint64;}
37             leaf vpnId { type uint32;}  /* optional */
38             leaf ipPrefix {type string;}
39             leaf nexthopIp {type string;}
40         }
41         output {
42             leaf egressPointer {type uint32;}
43             leaf localDestination {type boolean;}
44         }
45     }
46
47     rpc removeLocalNextHop {
48         description "remove a local next hop";
49         input {
50             leaf dpnId {type uint64;}
51             leaf vpnId { type uint32;}  /* optional */
52             leaf ipPrefix {type string;}
53             leaf nexthopIp {type string;}
54         }
55     }
56 }