Uploaded image for project: 'hc2vpp'
  1. hc2vpp
  2. HC2VPP-196

Operational route data is unrepresentative of fib table

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 17.07
    • 17.07
    • None
    • None

      I am getting this weird data from operational data store for the routing table below. In learned-protocol-0 in the data below, many routes the next hop is `blackhole` whereas in the fib table we have an outgoing interface. Let’s take an example,

      We have this in ip fib:

       10.0.0.0/24
       unicast-ip4-chain
       [@0]: dpo-load-balance: [proto:ip4 index:9 buckets:1 uRPF:14 to:[1:144]]
       [0] [@4]: ipv4-glean: GigabitEthernet0/a/0
      

       

      But from restconf on operational DS, looks like the equivalent is:

       

      {
          "id": 6,
          "special-next-hop": "blackhole",
          "destination-prefix": "10.0.0.100/24",
          "vpp-ipv4-route-state": {}
      }

       
      Data:

      Ip fib table 0

       

      ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto ] locks:5
      0.0.0.0/0
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:1 buckets:1 uRPF:31 to:[0:0]]
      [0] [@10]: lisp-cp-punt-ip4
      0.0.0.0/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:2 buckets:1 uRPF:1 to:[0:0]]
      [0] [@0]: dpo-drop ip4
      10.0.0.0/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:10 buckets:1 uRPF:9 to:[0:0]]
      [0] [@0]: dpo-drop ip4
      10.0.0.1/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:37 buckets:1 uRPF:49 to:[298:42912]]
      [0] [@5]: ipv4 via 10.0.0.1 GigabitEthernet0/a/0: 0a002700000908002752984b0800
      10.0.0.0/24
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:9 buckets:1 uRPF:14 to:[1:144]]
      [0] [@4]: ipv4-glean: GigabitEthernet0/a/0
      10.0.0.100/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:12 buckets:1 uRPF:13 to:[243:34992]]
      [0] [@2]: dpo-receive: 10.0.0.100 on GigabitEthernet0/a/0
      10.0.0.255/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:11 buckets:1 uRPF:11 to:[699:52812]]
      [0] [@0]: dpo-drop ip4
      10.10.10.0/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:14 buckets:1 uRPF:15 to:[0:0]]
      [0] [@0]: dpo-drop ip4
      10.10.10.0/24
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:13 buckets:1 uRPF:18 to:[0:0]]
      [0] [@4]: ipv4-glean: GigabitEthernet0/9/0
      10.10.10.100/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:16 buckets:1 uRPF:19 to:[0:0]]
      [0] [@2]: dpo-receive: 10.10.10.100 on GigabitEthernet0/9/0
      10.10.10.255/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:15 buckets:1 uRPF:17 to:[9:648]]
      [0] [@0]: dpo-drop ip4
      224.0.0.0/4
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:4 buckets:1 uRPF:3 to:[0:0]]
      [0] [@0]: dpo-drop ip4
      240.0.0.0/4
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:3 buckets:1 uRPF:2 to:[0:0]]
      [0] [@0]: dpo-drop ip4
      255.255.255.255/32
      unicast-ip4-chain
      [@0]: dpo-load-balance: [proto:ip4 index:5 buckets:1 uRPF:4 to:[0:0]]
      [0] [@0]: dpo-drop ip4
      

       
      The restconf data from operational DS:

      {
          "routing-state": {
              "routing-instance": [
                  {
                      "name": "vpp-routing-instance",
                      "type": "hc2vpp-ietf-routing:standard-routing-instance",
                      "routing-protocols": {
                          "routing-protocol": [
                              {
                                  "name": "learned-protocol-2",
                                  "vpp-routing:vpp-protocol-state-attributes": {
                                      "primary-vrf": 2
                                  },
                                  "type": "hc2vpp-ietf-routing:static",
                                  "static-routes": {
                                      "hc2vpp-ietf-ipv4-unicast-routing:ipv4": {
                                          "route": [
                                              {
                                                  "id": 31,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "0.0.0.0/0",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 32,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "0.0.0.0/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 33,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "224.0.0.0/4",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 34,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "240.0.0.0/4",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 35,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "255.255.255.255/32",
                                                  "vpp-ipv4-route-state": {}
                                              }
                                          ]
                                      }
                                  }
                              },
                              {
                                  "name": "learned-protocol-0",
                                  "vpp-routing:vpp-protocol-state-attributes": {
                                      "primary-vrf": 0
                                  },
                                  "type": "hc2vpp-ietf-routing:static",
                                  "static-routes": {
                                      "hc2vpp-ietf-ipv4-unicast-routing:ipv4": {
                                          "route": [
                                              {
                                                  "id": 2,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "0.0.0.0/0",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 3,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "0.0.0.0/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 4,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "10.0.0.0/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 5,
                                                  "next-hop": "10.0.0.1",
                                                  "outgoing-interface": "GigabitEthernet0/a/0",
                                                  "destination-prefix": "10.0.0.1/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 6,
                                                  "special-next-hop": "blackhole",
                                                  "destination-prefix": "10.0.0.100/24",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 7,
                                                  "special-next-hop": "blackhole",
                                                  "destination-prefix": "10.0.0.100/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 8,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "10.0.0.255/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 9,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "10.10.10.0/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 10,
                                                  "special-next-hop": "blackhole",
                                                  "destination-prefix": "10.10.10.100/24",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 11,
                                                  "special-next-hop": "blackhole",
                                                  "destination-prefix": "10.10.10.100/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 12,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "10.10.10.255/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 13,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "224.0.0.0/4",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 14,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "240.0.0.0/4",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 15,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "255.255.255.255/32",
                                                  "vpp-ipv4-route-state": {}
                                              }
                                          ]
                                      },
                                      "hc2vpp-ietf-ipv6-unicast-routing:ipv6": {
                                          "route": [
                                              {
                                                  "id": 16,
                                                  "vpp-ipv6-route-state": {},
                                                  "next-hop": "::",
                                                  "destination-prefix": "0:0:0:0:0:0:0:0/0"
                                              },
                                              {
                                                  "id": 17,
                                                  "vpp-ipv6-route-state": {},
                                                  "next-hop": "::",
                                                  "destination-prefix": "fe80:0:0:0:0:0:0:0/10"
                                              }
                                          ]
                                      }
                                  }
                              },
                              {
                                  "name": "static-routing-1",
                                  "vpp-routing:vpp-protocol-state-attributes": {
                                      "primary-vrf": 1
                                  },
                                  "type": "hc2vpp-ietf-routing:static",
                                  "static-routes": {
                                      "hc2vpp-ietf-ipv4-unicast-routing:ipv4": {
                                          "route": [
                                              {
                                                  "id": 18,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "0.0.0.0/0",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 19,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "0.0.0.0/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 20,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "10.11.12.0/25",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 21,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "10.11.12.0/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 22,
                                                  "next-hop": "0.0.0.0",
                                                  "outgoing-interface": "loop-0",
                                                  "destination-prefix": "10.11.12.1/24",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 23,
                                                  "next-hop": "10.11.12.1",
                                                  "outgoing-interface": "loop-0",
                                                  "destination-prefix": "10.11.12.1/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 1,
                                                  "next-hop": "10.11.12.2",
                                                  "outgoing-interface": "neutron_port_11100001-0afa-41cc-8f2f-8d62b6e9bc1c",
                                                  "destination-prefix": "10.11.12.2/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 24,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "10.11.12.128/25",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 25,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "10.11.12.255/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 0,
                                                  "next-hop": "169.254.169.254",
                                                  "outgoing-interface": "neutron_port_11100001-0afa-41cc-8f2f-8d62b6e9bc1c",
                                                  "destination-prefix": "169.254.169.254/32",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 26,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "224.0.0.0/4",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 27,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "240.0.0.0/4",
                                                  "vpp-ipv4-route-state": {}
                                              },
                                              {
                                                  "id": 28,
                                                  "next-hop": "0.0.0.0",
                                                  "destination-prefix": "255.255.255.255/32",
                                                  "vpp-ipv4-route-state": {}
                                              }
                                          ]
                                      },
                                      "hc2vpp-ietf-ipv6-unicast-routing:ipv6": {
                                          "route": [
                                              {
                                                  "id": 29,
                                                  "vpp-ipv6-route-state": {},
                                                  "next-hop": "::",
                                                  "destination-prefix": "0:0:0:0:0:0:0:0/0"
                                              },
                                              {
                                                  "id": 30,
                                                  "vpp-ipv6-route-state": {},
                                                  "next-hop": "::",
                                                  "destination-prefix": "fe80:0:0:0:0:0:0:0/10"
                                              }
                                          ]
                                      }
                                  }
                              }
                          ]
                      }
                  }
              ]
          }
      }
      

      Take a look at: learned-protocol-0

       

            jsrnicek_cisco Jan Srnicek
            shakib.ahmed Shakib Ahmed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: