From 5a9ec0cdb08344c3de573de68e754c1bdc885088 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 (cherry picked from commit 5ade35255b3d8438aa6082fe56ae459d50cdc0a5) --- op-mode-definitions/dhcp.xml.in | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/dhcp.xml.in b/op-mode-definitions/dhcp.xml.in index 6114142f0..027072261 100644 --- a/op-mode-definitions/dhcp.xml.in +++ b/op-mode-definitions/dhcp.xml.in @@ -233,4 +233,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