summaryrefslogtreecommitdiff
path: root/op-mode-definitions/dhcp.xml.in
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-03-09 20:06:40 +0100
committerGitHub <noreply@github.com>2024-03-09 20:06:40 +0100
commite8a6d3ddb6eb36299dbced2e119ba0699e062350 (patch)
treeaed5859834208a758f251bb729d20ae3caf9eb80 /op-mode-definitions/dhcp.xml.in
parentda759a46efaaa937edae2440a7743d325ebf99b1 (diff)
parent0920121eed97889ff33ef84f04a3730242ccb04b (diff)
downloadvyos-1x-e8a6d3ddb6eb36299dbced2e119ba0699e062350.tar.gz
vyos-1x-e8a6d3ddb6eb36299dbced2e119ba0699e062350.zip
Merge pull request #3106 from sarthurdev/T6102
dhcp: T6102: Fix clear DHCP lease op-mode
Diffstat (limited to 'op-mode-definitions/dhcp.xml.in')
-rw-r--r--op-mode-definitions/dhcp.xml.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/op-mode-definitions/dhcp.xml.in b/op-mode-definitions/dhcp.xml.in
index 0db7471e5..3c42c8e8f 100644
--- a/op-mode-definitions/dhcp.xml.in
+++ b/op-mode-definitions/dhcp.xml.in
@@ -1,5 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>${vyos_op_scripts_dir}/dhcp.py clear_dhcp_server_lease --family inet --address $4</command>
+ </tagNode>
+ </children>
+ </node>
+ <node name="dhcpv6-server">
+ <properties>
+ <help>Clear DHCPv6 server lease</help>
+ </properties>
+ <children>
+ <tagNode name="lease">
+ <properties>
+ <help>DHCPv6 server lease</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/dhcp.py clear_dhcp_server_lease --family inet6 --address $4</command>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
<node name="show">
<children>
<node name="dhcp">