]> git.proxmox.com Git - mirror_frr.git/commit
zebra: rib nb changes with redefined nexthop model
authorChirag Shah <chirag@cumulusnetworks.com>
Fri, 5 Jun 2020 22:45:12 +0000 (15:45 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Wed, 10 Jun 2020 23:25:18 +0000 (16:25 -0700)
commit2b2282eb7619e33bcef0bc13694de2906bb9f4aa
treebaa2baa03fa0489580be81cd9c7253dfee422dda
parent9670b0b399ed479a81c6b201778f266853562ffb
zebra: rib nb changes with redefined nexthop model

RIB operational northbound changes based on redfined
nexthop model.

Testing Done:

{
  "afi-safi-name": "ipv4-unicast",
  "table-id": 254,
  "route": [
    {
      "prefix": "0.0.0.0/0",
      "route-entry": [
        {
          "protocol": "kernel",
          "distance": 0,
          "metric": 100,
          "selected": [null],
          "installed": [null],
          "internal-flags": 8,
          "internal-status": 16,
          "uptime": "2020-06-06T00:28:26.139797Z",
          "nexthop-group": {
            "id": 15,
            "nexthop": [
              {
                "nh-type": "ip4-ifindex",
                "vrf": "0",
                "gateway": "10.0.2.2",
                "interface": "enp0s3",
                "active": [null],
                "fib": [null]
              }
            ]
          }
        }
      ]
    },
    {
      "prefix": "1.1.1.4/32",
      "route-entry": [
        {
          "protocol": "kernel",
          "distance": 0,
          "metric": 0,
          "selected": [null],
          "installed": [null],
          "internal-flags": 8,
          "internal-status": 16,
          "uptime": "2020-06-06T00:28:26.139790Z",
          "nexthop-group": {
            "id": 16,
            "nexthop": [
              {
                "nh-type": "ifindex",
                "vrf": "0",
                "gateway": "",
                "interface": "dummy4",
                "active": [null],
                "fib": [null]
              }
            ]
          }
        }
      ]
    }
  ]
}

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
zebra/zebra_nb.c
zebra/zebra_nb.h
zebra/zebra_nb_state.c