backup_nhg_single_nh_test - openconfig/featureprofiles GitHub Wiki
Ensure that backup NextHopGroup entries are honoured in gRIBI for NHGs containing a single NH.
-
Connect ATE port-1 to DUT port-1, ATE port-2 to DUT port-2, and ATE port-3 to DUT port-3.
-
Create a non-default
VRF-Bthat contains no interfaces. -
Connect gRIBI client to DUT with persistence
PRESERVE, redundancySINGLE_PRIMARY, with election ID 1. -
Install the following gRIBI structure: (if not specifically mentioned, the objects are installed in the DEFAULT VRF)
-
NHG#1 --> NH#1 {next-hop: ATEPort2IP}
-
NHG#2 --> NH#2 {next-hop: ATEPort3IP}
-
192.0.2.254/32 --> NHG#1
-
NHG#100 --> NH#100 {network-instance:VRF-B}
-
NHG#101 --> [NH#101 {next-hop: 192.0.2.254}, backupNHG: NHG#100]
-
198.51.100.0/32 {DEFAULT} --> NHG#101
-
198.51.100.0/32 {VRF-B} --> NHG#2
-
Validate:
- AFT telemetry shows the installed NHGs and NHs.
- Traffic is forwarded to ATE port-2 from ATE port-1.
-
For each of the following cases, ensure that traffic switches to being forwarded to ATE port-3:
- Interface ATE port-2 is disabled.
- Interface DUT port-2 is disabled.
-
Remove the entry for 192.0.2.254/32.
paths:
/interfaces/interface/config/description:
/interfaces/interface/config/enabled:
/interfaces/interface/ethernet/config/port-speed:
/interfaces/interface/state/oper-status:
/interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/config/ip:
/interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/config/prefix-length:
/network-instances/network-instance/config/description:
/network-instances/network-instance/config/type:
/network-instances/network-instance/interfaces/interface/config/id:
/network-instances/network-instance/interfaces/interface/config/interface:
/network-instances/network-instance/interfaces/interface/config/subinterface:
/network-instances/network-instance/policy-forwarding/interfaces/interface/config/apply-vrf-selection-policy:
/network-instances/network-instance/policy-forwarding/policies/policy/config/type:
/network-instances/network-instance/policy-forwarding/policies/policy/rules/rule/action/config/network-instance:
/network-instances/network-instance/policy-forwarding/policies/policy/rules/rule/ipv4/config/protocol:
rpcs:
gnmi:
gNMI.Get:
gNMI.Set:
gNMI.Subscribe:
gribi:
gRIBI.Flush:
gRIBI.Get:
gRIBI.Modify:vRX if the vendor implementation supports FIB-ACK simulation, otherwise FFF.