[NETVIRT-87] FIB entries are not programmed for static routes added in routers with intervpnlink Created: 20/Aug/16  Updated: 30/Oct/17  Resolved: 30/Aug/16

Status: Resolved
Project: netvirt
Component/s: General
Affects Version/s: Boron
Fix Version/s: None

Type: Bug
Reporter: Suraj Ranjan Assignee: Vishal Thapar
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 6487

 Description   

EFFECT:

FIB entries are not programmed for static routes added in routers with intervpnlink

DESCRIPTION:

FIB entries are not programmed for static routes added in routers with intervpnlink.

Steps:
=========
Create AccessNetwork, Outernetwork
Create Accesssubnet, Outersubnet
Create accessrouter and add an interface from access network
Create outerrouter and add an interface from outer network
Create an intervpnlink with endpoints from access/outernetwork and vpn uuids
Added 2 static routes in the routers as below

PUT response: {
"router" : {
"id" : "5971a821-f8f0-4771-ae4c-7f132ba50001",
"tenant_id" : "6c53df3a345611e5a151feff819cdc9f",
"name" : "AccessRouter1",
"admin_state_up" : true,
"external_gateway_info" : null,
"distributed" : false,
"gw_port_id" : null,
"routes" : [

{ "destination" : "0.0.0.0/0", "nexthop" : "50.1.1.100" }

]
}
}

PUT response: {
"router" : {
"id" : "5971a821-f8f0-4771-ae4c-7f132ba50002",
"tenant_id" : "6c53df3a345611e5a151feff819cdc9f",
"name" : "OuterRouter1",
"admin_state_up" : true,
"external_gateway_info" : null,
"distributed" : false,
"gw_port_id" : null,
"routes" : [

{ "destination" : "100.1.1.0/24", "nexthop" : "10.1.1.100" }

]
}
}

I've an intervpn link configured as below.

Intervpn-link
----------------
{'inter-vpn-link': [{'bgp-routes-leaking': u'true', 'name': 'INTERVPNLINK1', 'first-endpoint':

{'vpn-uuid': '4ae8cd92-48ca-49b5-94e1-b2921a260001', 'ip-address': '10.1.1.100'}

, 'second-endpoint': {'vpn-uuid': '4ae8cd92-48ca-49b5-94e1-b2921a260002', 'ip-address': '50.1.1.100'}}]}

{"inter-vpn-link-state":[{"inter-vpn-link-name":"INTERVPNLINK1","state":"active","first-endpoint-state":

{"dp-id":[191793337313089],"vpn-uuid":"4ae8cd92-48ca-49b5-94e1-b2921a260001","lport-tag":9}

,"second-endpoint-state":{"dp-id":[191793337313089],"vpn-uuid":"4ae8cd92-48ca-49b5-94e1-b2921a260002","lport-tag":10}}]}

Table 17 on CSS2 where the intervpnlink is come up
---------------------------------------------------
cookie=0x8621173, duration=28.932s, table=17, n_packets=0, n_bytes=0, priority=1,metadata=0x40000a0000000000/0xffffff0000000000 actions=write_metadata:0x11173/0xffffffff,goto_table:21
cookie=0x8621172, duration=28.308s, table=17, n_packets=0, n_bytes=0, priority=1,metadata=0x4000090000000000/0xffffff0000000000 actions=write_metadata:0x11172/0xffffffff,goto_table:21

Router config datastore dump from REST
----------------------------------------
{"routers":{"router":[{"uuid":"5971a821-f8f0-4771-ae4c-7f132ba50002","name":"OuterRouter1","tenant-id":"6c53df3a-3456-11e5-a151-feff819cdc9f","admin-state-up":true,"routes":[

{"destination":"100.1.1.0/24","nexthop":"10.1.1.100"}

]},{"uuid":"5971a821-f8f0-4771-ae4c-7f132ba50001","name":"AccessRouter1","tenant-id":"6c53df3a-3456-11e5-a151-feff819cdc9f","admin-state-up":true,"routes":[

{"destination":"0.0.0.0/0","nexthop":"50.1.1.100"}

]}]}}

odl-fib
--------------
{"fibEntries":{"vrfTables":[{"routeDistinguisher":"100:2","vrfEntry":[

{"destPrefix":"1.1.1.1/32","origin":"l","label":70004,"nextHopAddressList":["10.1.1.100"]}

]},{"routeDistinguisher":"100:1","vrfEntry":[

{"destPrefix":"1.1.1.1/32","origin":"b","label":786431,"nextHopAddressList":["10.4.1.94"]}

]}]}}



 Comments   
Comment by Suraj Ranjan [ 30/Aug/16 ]

https://git.opendaylight.org/gerrit/#/c/44430/

Generated at Wed Feb 07 20:20:40 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.