X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=vpnservice.git;a=blobdiff_plain;f=nexthopmgr%2Fnexthopmgr-api%2Fsrc%2Fmain%2Fyang%2Fl3nexthop.yang;h=68083d6b8d854f3cfd7e4b502a620ba807fdb0b7;hp=3090e70211b1447c2c58349cb7bc68f87fc2c11b;hb=bf763e40df1a5d0e6831e1d8a6005bd2d721b8fa;hpb=2654766bf8e84f41e72fae4af450bf1705641506 diff --git a/nexthopmgr/nexthopmgr-api/src/main/yang/l3nexthop.yang b/nexthopmgr/nexthopmgr-api/src/main/yang/l3nexthop.yang index 3090e702..68083d6b 100644 --- a/nexthopmgr/nexthopmgr-api/src/main/yang/l3nexthop.yang +++ b/nexthopmgr/nexthopmgr-api/src/main/yang/l3nexthop.yang @@ -1,56 +1,56 @@ module l3nexthop { - namespace "urn:opendaylight:vpnservice:l3nexthop"; - prefix l3nexthop; - - revision "2015-04-09" { - description "L3 NextHop module"; - } + namespace "urn:opendaylight:vpnservice:l3nexthop"; + prefix l3nexthop; - container l3nexthop { - config false; - list vpnNexthops{ - key "vpnId"; - leaf vpnId {type uint32;} - list vpnNexthop{ - key "IpAddress"; - leaf IpAddress {type string;} - leaf egressPointer {type uint32;} - } - } - list tunnelNexthops{ - key "dpnId"; - leaf dpnId {type uint32;} - list tunnelNexthop{ - key "IpAddress"; - leaf IpAddress {type string;} - leaf egressPointer {type uint32;} - } - } - } - - rpc getEgressPointer { - description "returns egress pointer, an OF Group Id"; - input { - leaf dpnId {type uint32;} - leaf vpnId { type uint32;} /* optional */ - leaf ipPrefix {type string;} - leaf nexthopIp {type string;} - } - output { - leaf egressPointer {type uint32;} - leaf localDestination {type boolean;} - } - } + revision "2015-04-09" { + description "L3 NextHop module"; + } - rpc removeLocalNextHop { - description "remove a local next hop"; - input { - leaf dpnId {type uint32;} - leaf vpnId { type uint32;} /* optional */ - leaf ipPrefix {type string;} - leaf nexthopIp {type string;} - } - } + container l3nexthop { + config false; + list vpnNexthops{ + key "vpnId"; + leaf vpnId {type uint32;} + list vpnNexthop{ + key "IpAddress"; + leaf IpAddress {type string;} + leaf egressPointer {type uint32;} + } + } + list tunnelNexthops{ + key "dpnId"; + leaf dpnId {type uint64;} + list tunnelNexthop{ + key "IpAddress"; + leaf IpAddress {type string;} + leaf egressPointer {type uint32;} + } + } + } + + rpc getEgressPointer { + description "returns egress pointer, an OF Group Id"; + input { + leaf dpnId {type uint64;} + leaf vpnId { type uint32;} /* optional */ + leaf ipPrefix {type string;} + leaf nexthopIp {type string;} + } + output { + leaf egressPointer {type uint32;} + leaf localDestination {type boolean;} + } + } + + rpc removeLocalNextHop { + description "remove a local next hop"; + input { + leaf dpnId {type uint64;} + leaf vpnId { type uint32;} /* optional */ + leaf ipPrefix {type string;} + leaf nexthopIp {type string;} + } + } } \ No newline at end of file