summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces_wireless.py
diff options
context:
space:
mode:
authorNataliia S. <81954790+natali-rs1985@users.noreply.github.com>2025-11-13 16:46:19 +0200
committerGitHub <noreply@github.com>2025-11-13 16:46:19 +0200
commit23e61833f4ac2a0dce040520c1324bab8c025209 (patch)
treec89d6f2d0e86740379f2be7dd122d42d8f83896d /src/conf_mode/interfaces_wireless.py
parent99274f653d9973d83e56b158305d359ae2b74826 (diff)
parentccf4972f8dd9ddf370fe6376480c1244a138c4bd (diff)
downloadvyos-1x-23e61833f4ac2a0dce040520c1324bab8c025209.tar.gz
vyos-1x-23e61833f4ac2a0dce040520c1324bab8c025209.zip
Merge pull request #4835 from natali-rs1985/T7731
T7731: Static ARP entries are missing after an interface status change
Diffstat (limited to 'src/conf_mode/interfaces_wireless.py')
-rwxr-xr-xsrc/conf_mode/interfaces_wireless.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces_wireless.py b/src/conf_mode/interfaces_wireless.py
index b3b909046..a2e31484b 100755
--- a/src/conf_mode/interfaces_wireless.py
+++ b/src/conf_mode/interfaces_wireless.py
@@ -22,6 +22,8 @@ from netaddr import EUI, mac_unix_expanded
from time import sleep
from vyos.config import Config
+from vyos.configdep import set_dependents
+from vyos.configdep import call_dependents
from vyos.configdict import get_interface_dict
from vyos.configdict import dict_merge
from vyos.configverify import verify_address
@@ -133,6 +135,10 @@ def get_config(config=None):
wifi['hostapd_accept_station_conf'] = hostapd_accept_station_conf.format(**wifi)
wifi['hostapd_deny_station_conf'] = hostapd_deny_station_conf.format(**wifi)
+ # Protocols static arp dependency
+ if 'static_arp' in wifi:
+ set_dependents('static_arp', conf)
+
return wifi
def verify(wifi):
@@ -331,6 +337,9 @@ def apply(wifi):
elif wifi['type'] == 'station':
call(f'systemctl start wpa_supplicant@{interface}.service')
+ if 'static_arp' in wifi:
+ call_dependents()
+
return None
if __name__ == '__main__':