Uploaded image for project: 'netvirt'
  1. netvirt
  2. NETVIRT-87

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Boron
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 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"]}

      ]}]}}

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thapar Vishal Thapar
            suraj.ranjan@ericsson.com Suraj Ranjan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: