summaryrefslogtreecommitdiff
path: root/op-mode-definitions/clear-dhcp-server-lease.xml.in
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-07-01 16:10:02 +0100
committerGitHub <noreply@github.com>2022-07-01 16:10:02 +0100
commitf315714d0c680ad80a79dcdac21576407794dcd1 (patch)
tree781f7337d1693cbd442fa2e3ccfaf5dc9e12e7c2 /op-mode-definitions/clear-dhcp-server-lease.xml.in
parentd519baabfd292ef70ac8d842dbc5aa728cbd1915 (diff)
parent7ed0fa3092744a8fe9d0b9ebd2d126e5e07b6285 (diff)
downloadvyos-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.in20
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>