summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorawolfnet <haiyang@awolf.net>2025-10-02 11:04:07 +0800
committerawolfnet <haiyang@awolf.net>2025-10-02 11:04:07 +0800
commitf21ea718acedc263480ad82c801ca818482a0f9d (patch)
treea8b5ad2cbd4169da569cd3911411bee8ac1309a2 /src
parent31f8bd8e762ddd999e8cefd52786353f43ea4c1c (diff)
downloadvyos-1x-f21ea718acedc263480ad82c801ca818482a0f9d.tar.gz
vyos-1x-f21ea718acedc263480ad82c801ca818482a0f9d.zip
op-mode: T7868: fix op-cmd "reset ip arp table" is not working
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/neighbor.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/op_mode/neighbor.py b/src/op_mode/neighbor.py
index 50fcf87c5..9bbad94e1 100755
--- a/src/op_mode/neighbor.py
+++ b/src/op_mode/neighbor.py
@@ -109,7 +109,7 @@ def reset(family: ArgFamily, interface: typing.Optional[str], address: typing.Op
run(f"""ip --family {family} neighbor flush dev {interface}""")
else:
# Flush an entire neighbor table
- run(f"""ip --family {family} neighbor flush""")
+ run(f"""ip --family {family} neighbor flush all""")
if __name__ == '__main__':
try:
@@ -119,4 +119,3 @@ if __name__ == '__main__':
except (ValueError, vyos.opmode.Error) as e:
print(e)
sys.exit(1)
-