BUG-5137: extraroutes in router not working 62/34062/1
authorVishal Thapar <vishal.thapar@ericsson.com>
Mon, 1 Feb 2016 08:51:15 +0000 (14:21 +0530)
committerIsaku Yamahata <isaku.yamahata@gmail.com>
Thu, 4 Feb 2016 11:19:11 +0000 (11:19 +0000)
commitcea77b9242c28556ab63723ec5deceb9f0e9bdab
treed1b3c8843b8306cd6071ac47acecaaa974be8efc
parenta5ff5dcdf851a512d9fd43e5b51852621af2f634
BUG-5137: extraroutes in router not working

Neutron API defines extraroutes as list of destination and nexthop but in
neutron-l3.yang they're defined as list of strings. So, when these routes
are present in a router object sent by openstack we are unable to store
them in MDSAL. Fix is to change the type of routes in l3-attributes to
match with what Neutron API sends us.

Change-Id: I83519edcbdf6f4fcae34ae9650cf8ede40256296
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
(cherry picked from commit 59f3919dd01797fb056fa5dcdebda2076a936954)
model/src/main/yang/neutron-L3.yang
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronRoute.java [new file with mode: 0644]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronRouter.java
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronSubnet_HostRoute.java
neutron-spi/src/test/java/org/opendaylight/neutron/spi/NeutronRouterJAXBTest.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronRouterInterface.java