From ccf4972f8dd9ddf370fe6376480c1244a138c4bd Mon Sep 17 00:00:00 2001 From: Nataliia Solomko Date: Wed, 5 Nov 2025 13:20:42 +0200 Subject: T7731: Static ARP entries are missing after an interface status change --- python/vyos/configdict.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'python') diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py index ea244247c..e1d05c384 100644 --- a/python/vyos/configdict.py +++ b/python/vyos/configdict.py @@ -613,6 +613,16 @@ def get_interface_dict(config, base, ifname='', recursive_defaults=True, with_pk # Check vif, vif-s/vif-c VLAN interfaces for removal dict = get_removed_vlans(config, base + [ifname], dict) + + # Checks for the presence of static ARP entries on a given interface or VLAN + static_arp = config.get_config_dict( + ['protocols', 'static', 'arp', 'interface'], + key_mangling=('-', '_'), + get_first_key=True, + ) + if any(key == ifname or key.startswith(f'{ifname}.') for key in static_arp.keys()): + dict.update({'static_arp': {}}) + return ifname, dict def get_vlan_ids(interface): -- cgit v1.2.3