mirror_frr/tests/topotests/bgp_features/r1/zebra.conf
Donatas Abraitis d02fae5836 zebra: Show NHT resolve via default status on/off
```
donatas-laptop# show ip nht
VRF default:
 Resolve via default: on
192.168.10.123
 resolved via connected
 is directly connected, wlp82s0 (vrf default)
 Client list: bgp(fd 21)
donatas-laptop# show ip nht json
{
  "default":{
    "ipv4":{
      "resolveViaDefault":true,
      "192.168.10.123":{
        "nhtConnected":false,
        "clientList":[
          {
            "protocol":"bgp",
            "socket":21,
            "protocolFiltered":"none"
          }
        ],
        "nexthops":[
          {
            "flags":3,
            "fib":true,
            "directlyConnected":true,
            "interfaceIndex":3,
            "interfaceName":"wlp82s0",
            "vrf":"default",
            "active":true
          }
        ],
        "resolvedProtocol":"connected"
      }
    }
  }
}
donatas-laptop# show ip nht vrf all

VRF default:
 Resolve via default: on
192.168.10.123
 resolved via connected
 is directly connected, wlp82s0 (vrf default)
 Client list: bgp(fd 21)
donatas-laptop# show ip nht vrf all json
{
  "default":{
    "ipv4":{
      "resolveViaDefault":true,
      "192.168.10.123":{
        "nhtConnected":false,
        "clientList":[
          {
            "protocol":"bgp",
            "socket":21,
            "protocolFiltered":"none"
          }
        ],
        "nexthops":[
          {
            "flags":3,
            "fib":true,
            "directlyConnected":true,
            "interfaceIndex":3,
            "interfaceName":"wlp82s0",
            "vrf":"default",
            "active":true
          }
        ],
        "resolvedProtocol":"connected"
      }
    }
  }
}
donatas-laptop#
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-08-17 21:45:55 +03:00

30 lines
593 B
Plaintext

!
hostname r1
log file zebra.log
!
interface lo
ip address 192.168.0.1/32
ipv6 address fc00::1/128
!
interface r1-eth0
description SW6 Stub Network
ip address 192.168.6.1/24
ipv6 address fc00:0:0:6::1/64
!
interface r1-eth1
description SW0 R1-R2 OSPF & BGP Network
ip address 192.168.1.1/24
ipv6 address fc00:0:0:1::1/64
!
interface r1-eth2
description SW2 R1-R3 OSPF Network
ip address 192.168.3.1/24
ipv6 address fc00:0:0:3::1/64
!
interface r1-eth3
description SW4 R1-R4 eBGP Network
ip address 192.168.101.1/24
ipv6 address fc00:100:0:1::1/64
!
no ip nht resolve-via-default