summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniilHarun <harunaga@harunaga.ru>2022-08-16 15:38:57 +0300
committerGitHub <noreply@github.com>2022-08-16 15:38:57 +0300
commit9c9e7618cdc5c293c41cad1a3e4666f98298870f (patch)
treec0ba56bfef28df564f6c74b5368313f2b9fb693c
parenta21669ee5c87425a2eb91631eb00774b30249c8e (diff)
downloadvyos-1x-9c9e7618cdc5c293c41cad1a3e4666f98298870f.tar.gz
vyos-1x-9c9e7618cdc5c293c41cad1a3e4666f98298870f.zip
T4619: Replacing instead of adding a static arp entry
-rwxr-xr-xsrc/conf_mode/arp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/arp.py b/src/conf_mode/arp.py
index 1cd8f5451..7dc5206e0 100755
--- a/src/conf_mode/arp.py
+++ b/src/conf_mode/arp.py
@@ -61,7 +61,7 @@ def apply(arp):
continue
for address, address_config in interface_config['address'].items():
mac = address_config['mac']
- call(f'ip neigh add {address} lladdr {mac} dev {interface}')
+ call(f'ip neigh replace {address} lladdr {mac} dev {interface}')
if __name__ == '__main__':
try: