diff options
author | John Estabrook <jestabro@vyos.io> | 2022-07-20 15:32:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-20 15:32:59 -0500 |
commit | f424d84f41791949a2ada417ecdd45a3b842799a (patch) | |
tree | 95e26bd89b6829493c0f5cef21616c523a0caa20 /op-mode-definitions/ipv4-route.xml.in | |
parent | 38d753f830887c35abe4fbcf1bb73b6f26be1fdf (diff) | |
parent | f9e835c41643f8d41f675c0364686fbea5055896 (diff) | |
download | vyos-1x-f424d84f41791949a2ada417ecdd45a3b842799a.tar.gz vyos-1x-f424d84f41791949a2ada417ecdd45a3b842799a.zip |
Merge pull request #1351 from dmbaturin/genop
T2719: prototype of an op mode command runner based on type hints and introspection
Diffstat (limited to 'op-mode-definitions/ipv4-route.xml.in')
-rw-r--r-- | op-mode-definitions/ipv4-route.xml.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/op-mode-definitions/ipv4-route.xml.in b/op-mode-definitions/ipv4-route.xml.in index 8f001d5bb..660b34496 100644 --- a/op-mode-definitions/ipv4-route.xml.in +++ b/op-mode-definitions/ipv4-route.xml.in @@ -39,7 +39,7 @@ <list><x.x.x.x></list> </completionHelp> </properties> - <command>sudo ip neigh flush to "$5"</command> + <command>sudo ${vyos_op_scripts_dir}/neighbor.py reset --family inet --address "$5"</command> </tagNode> <tagNode name="interface"> <properties> @@ -48,8 +48,14 @@ <script>${vyos_completion_dir}/list_interfaces.py</script> </completionHelp> </properties> - <command>sudo ip neigh flush dev "$5"</command> + <command>sudo ${vyos_op_scripts_dir}/neighbor.py reset --family inet --interface "$5"</command> </tagNode> + <node name="table"> + <properties> + <help>Flush the ARP cache completely</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/neighbor.py reset --family inet</command> + </node> </children> </node> <node name="route"> |