From 5ade35255b3d8438aa6082fe56ae459d50cdc0a5 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 27 Jun 2024 21:34:14 +0200 Subject: op-mode: T6524: rewrite "release dhcp(v6) interface" to new op-mode format --- op-mode-definitions/dhcp.xml.in | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'op-mode-definitions/dhcp.xml.in') 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 @@ + + + Release specified variable + + + + + Release DHCP client lease + + + + + Release DHCP client lease for specified interface + + + + + sudo ${vyos_op_scripts_dir}/dhcp.py release_client_lease --family inet --interface "$4" + + + + + + Release DHCPv6 client lease + + + + + Release DHCPv6 client lease for specified interface + + + + + sudo ${vyos_op_scripts_dir}/dhcp.py release_client_lease --family inet6 --interface "$4" + + + + + -- cgit v1.2.3