cc86285bec13430a0f825fc8a8251c4e041dd548
[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-03-30" {
8                 description "L3 NextHop module";
9         }
10
11         container l3nexthop {
12                 list vpnNexthops{
13                         key "vpnId";
14                         leaf vpnId {type uint32;}
15                         list vpnNexthop{
16                                 key  "IpAddress";
17                                 leaf IpAddress {type string;}
18                                 leaf dpnId {type uint32;}
19                                 leaf egressPointer {type uint32;}
20                         }
21                 }
22                 list genNexthops{
23                         key  "IpAddress";
24                         leaf IpAddress {type string;}
25                         leaf dpnId {type uint32;}
26                         leaf egressPointer {type uint32;}
27                 }
28         }
29         rpc getEgressPointer {
30                 description "returns egress pointer, an OF Group Id";
31                 input { 
32                         leaf dpnId {type uint32;}
33                         leaf vpnId { type uint32;}  /* optional */
34                         leaf ipAddress{type string;}
35                 }
36                 output { 
37                         leaf egressPointer {type uint32;} 
38                 }
39         }
40 }