summaryrefslogtreecommitdiff
path: root/op-mode-definitions/dhcp.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-06-29 17:52:35 +0200
committerGitHub <noreply@github.com>2024-06-29 17:52:35 +0200
commit869b5cdebe73f5dc0fe2b6d2b718291bfe2fb99f (patch)
tree1cb26763aba2ed12c9d86db347e1837f08e2543a /op-mode-definitions/dhcp.xml.in
parent551dfa5c47d19b62fbfba5e26e357f93546ff4d8 (diff)
parente88c3f9e618212f97a61fa82948caf4b431cd6eb (diff)
downloadvyos-1x-869b5cdebe73f5dc0fe2b6d2b718291bfe2fb99f.tar.gz
vyos-1x-869b5cdebe73f5dc0fe2b6d2b718291bfe2fb99f.zip
Merge pull request #3742 from vyos/mergify/bp/circinus/pr-3733
op-mode: T6524: rewrite "release dhcp(v6) interface" to new op-mode format (backport #3733)
Diffstat (limited to 'op-mode-definitions/dhcp.xml.in')
-rw-r--r--op-mode-definitions/dhcp.xml.in39
1 files changed, 39 insertions, 0 deletions
diff --git a/op-mode-definitions/dhcp.xml.in b/op-mode-definitions/dhcp.xml.in
index 0b4a05ffe..eee6937d6 100644
--- a/op-mode-definitions/dhcp.xml.in
+++ b/op-mode-definitions/dhcp.xml.in
@@ -315,4 +315,43 @@
</node>
</children>
</node>
+ <node name="release">
+ <properties>
+ <help>Release specified variable</help>
+ </properties>
+ <children>
+ <node name="dhcp">
+ <properties>
+ <help>Release DHCP client lease</help>
+ </properties>
+ <children>
+ <tagNode name="interface">
+ <properties>
+ <help>Release DHCP client lease for specified interface</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces</script>
+ </completionHelp>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/dhcp.py release_client_lease --family inet --interface "$4"</command>
+ </tagNode>
+ </children>
+ </node>
+ <node name="dhcpv6">
+ <properties>
+ <help>Release DHCPv6 client lease</help>
+ </properties>
+ <children>
+ <tagNode name="interface">
+ <properties>
+ <help>Release DHCPv6 client lease for specified interface</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces</script>
+ </completionHelp>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/dhcp.py release_client_lease --family inet6 --interface "$4"</command>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
</interfaceDefinition>