diff options
author | Christian Breunig <christian@breunig.cc> | 2024-06-29 17:24:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-29 17:24:27 +0200 |
commit | 7eddd35e177ef5a41c19bb37b0bc80bdf4b8246d (patch) | |
tree | 834d1574a21582c62af1e61c662de5004fc4a953 /op-mode-definitions | |
parent | 206c07afc26e826facdaa1b04d697e7f74e55eb0 (diff) | |
parent | 5ade35255b3d8438aa6082fe56ae459d50cdc0a5 (diff) | |
download | vyos-1x-7eddd35e177ef5a41c19bb37b0bc80bdf4b8246d.tar.gz vyos-1x-7eddd35e177ef5a41c19bb37b0bc80bdf4b8246d.zip |
Merge pull request #3733 from c-po/T6524-release-dhcp
op-mode: T6524: rewrite "release dhcp(v6) interface" to new op-mode format
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/dhcp.xml.in | 39 |
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> |