pimd: Prevent crash on interface removalPrevent a crash when we remove interfaces from pim configuration
at scale.
Ticket: CM-32197
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra: ensure zif mac_list exists before unlinking macEnsure that an ifp's evpn mac_list still exists before trying
to reference it, when unlinking a mac object.
Signed-off-by: Mark Stapp <mstapp@nvidia.com>
bgpd: Fix some CI warnings< WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
< #895: FILE: /tmp/f1-3241746/bgp_aspath.c:895:
< WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
< #898: FILE: /tmp/f1-3241746/bgp_aspath.c:898:
< WARNING: Missing a blank line after declarations
< #927: FILE: /tmp/f1-3241746/bgp_aspath.c:927:
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
tests: Add BGP maximum-prefix session recovery topotestTest BGP session recovery after maximum-prefix overflow when limit
is increased or unset for regular neighbors and peer-groups.
Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
bgpd: Fix maximum-prefix session recovery for peers and peer-groupsWhen a BGP session goes down due to maximum-prefix overflow, modifying
the configuration should allow the session to recover. However, the
session remains in Idle state because PEER_STATUS_PREFIX_OVERFLOW is
not cleared.
Fix three scenarios:
1. Increasing maximum-prefix limit on regular neighbor
2. Increasing maximum-prefix limit on peer-group member
3. Unsetting maximum-prefix on peer-group m...
zebra: Check if the netlink socket is _active_ before doing batch opskernel_terminate() might be called earlier before kernel_update_multi(), where
kernel_terminate() frees netlink socket buffers, closes the socket, etc.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
zebra: Add log during local sticy mac to remote sticky mac changeLet's assume the DUT receives sticky mac of a remote host, but it
already learnt the same mac as local sticky mac. Currently, Zebra
reprograms the local sticky to remote sticky MAC.
When this happens, we don't log any message about the mac movement.
So adding a log.
UT after the fix:
Leaf1 ------- Leaf2(DUT)
To recreate this scenario, we need to configure route-map filter on Leaf1
to deny MACI...
tests: add test for L3 VNI vlan/bridge fieldsAdd test case to verify that L3 VNI displays correct VLAN and bridge
information instead of showing "Vlan: 0" and "Bridge: -".
The test adds L3 VNI 999 with VLAN 999 on bridge br999 to the existing
bgp_evpn_vxlan_topo1 topology and verifies that "show evpn vni 999"
displays:
- "Vlan: 999" (not 0)
- "Bridge: br999" (not "-")
This validates the fix from commit 3ad2a782e6 ("zebra: set
vlan_id/br...
tests: EVPNv6 verify ping test incrase expect countAs per review comment increase the verify_expect
count from 10 to 15 for host to host ping validation.
Signed-off-by: Chirag Shah <chirag@nvidia.com>
tests: EVPNv6 check proper json for ip -j link showOn Ubuntu24.04 seeing additional line which can be filter out
before parsing the output.
ip -d -j link show vxlan48
info: Using default fan map value (33) <<<<<<
[{"ifindex":7,"ifname":"vxlan48",
"flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue",}]
Signed-off-by: Chirag Shah <chirag@nvidia.com>
tests: EVPNv6 L3 topotest overlay route checkAdd EVPN Type-5 overlay route verification test with support for both
IPv4 and IPv6 underlays:
Test additions:
- test_evpn_check_overlay_route(): Verifies EVPN Type-5 routes in both
FRR RIB and Linux kernel for route 81.1.1.0/24 in vrf1 on tor-21
- Validates FRR RIB using evpn_verify_vrf_rib_route()
- Validates kernel routing table and nexthop groups
- Checks ECMP next-hops (bordertor-...
tests: EVPNv6 L3 topotest ping overlay route testChanges:
- test_host_to_host_ping():
- use evpn_verify_ping_connectivity() from lib/evpn.py
- Tests connectivity from host-211 to host-111 (60.1.1.111)
- IPv4 test when using IPv4 underlay
- IPv6 test (2060:1:1:1::111) when using IPv6 underlay
- Strict 0% packet loss validation
- Automatic IPv4/IPv6 detection based on destination IP
Cursor
Signed-off-by: Chirag Shah <chirag@nvidia...
tests: add test for VNI summary VLAN/BRIDGE fieldsVerify 'show evpn vni' includes VLAN and BRIDGE columns.
Tests commit b99ffd903f.
Signed-off-by: Soumya Roy <souroy@nvidia.com>
tests: verify L2 VNI vlan/bridge in JSONAdd test to verify that L2 VNI JSON output includes "vlan" and
"bridge" fields that were missing before.
The test checks both PE1 and PE2 for VNI 101 to ensure the JSON
output from 'show evpn vni <l2vni> json' contains:
- "vlan" field with the VLAN ID
- "bridge" field with the bridge interface name
This validates the fix from commit 1a5ad2356b ("zebra: add vni
bridge vlan info in json output"...
zebra : fix for new VNI add in presence of vlan1Issue is:
when new VNI is added, the access vlan - '1' acts as a placeholder
till the sequence of updating the info for the new VNI is complete. In
the update sequence the placeholder is dereferenced when the actual
access-vlan for the VNI is updated. Hence when an actual vlan1 bridge
exists this current code path assumes this is a placedolder and removes
the vlan1-vni mapping.
fix is t...
zebra: set vlan_id/bridge_if on l3vni configureSet the vlan_id/bridge_if when the l3vni is configured.
We were neglecting to set this info if the l3vni is configured after
we read in the bridge/vlan info. This happens even at startup.
Before:
```
alfred# show evpn vni 10
VNI: 10
Type: L3
Tenant VRF: vrf-red
Vlan: 0 <============================
Bridge: - <===========================
Local Vtep Ip: 2.2.2.1
Vxlan-Intf: vxlan0...
tests: add test for RD display in bgp evpn route outputAdd test for RD display in bgp evpn route output
Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>