diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-06-25 11:15:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 11:15:13 +0200 |
commit | 56457c9f35c5273d1d7ad679f37278c6cf2c77b0 (patch) | |
tree | b43b4d176b632adae8b6ff0e50662ff15c5e3ee5 /op-mode-definitions | |
parent | 10782837ad7c05224db7f488c79b43c1d932973e (diff) | |
parent | a83eecfeee1f925c914a46623dd35f96b48389f8 (diff) | |
download | vyos-1x-56457c9f35c5273d1d7ad679f37278c6cf2c77b0.tar.gz vyos-1x-56457c9f35c5273d1d7ad679f37278c6cf2c77b0.zip |
Merge pull request #1360 from sever-sever/T1375
op-mode: T1375: Allow to clear dhcp-server lease
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/clear-dhcp-server-lease.xml.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/op-mode-definitions/clear-dhcp-server-lease.xml.in b/op-mode-definitions/clear-dhcp-server-lease.xml.in new file mode 100644 index 000000000..b1241588c --- /dev/null +++ b/op-mode-definitions/clear-dhcp-server-lease.xml.in @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="clear"> + <children> + <node name="dhcp-server"> + <properties> + <help>clear DHCP server lease</help> + </properties> + <children> + <tagNode name="lease"> + <properties> + <help>DHCP server lease</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/clear_dhcp_lease.py --ip $4</command> + </tagNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> |