diff options
author | Daniil Baturin <daniil@vyos.io> | 2022-07-01 16:10:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 16:10:02 +0100 |
commit | f315714d0c680ad80a79dcdac21576407794dcd1 (patch) | |
tree | 781f7337d1693cbd442fa2e3ccfaf5dc9e12e7c2 /op-mode-definitions/clear-dhcp-server-lease.xml.in | |
parent | d519baabfd292ef70ac8d842dbc5aa728cbd1915 (diff) | |
parent | 7ed0fa3092744a8fe9d0b9ebd2d126e5e07b6285 (diff) | |
download | vyos-1x-f315714d0c680ad80a79dcdac21576407794dcd1.tar.gz vyos-1x-f315714d0c680ad80a79dcdac21576407794dcd1.zip |
Merge pull request #1372 from sever-sever/T1375-eq
op-mode: T1375: Allow to clear dhcp-server lease
Diffstat (limited to 'op-mode-definitions/clear-dhcp-server-lease.xml.in')
-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> |