From a83eecfeee1f925c914a46623dd35f96b48389f8 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 15 Jun 2022 12:32:07 +0000 Subject: op-mode: T1375: Allow to clear dhcp-server lease Allow to reset dhcp-leases per ip Parse file '/config/dhcpd.leases' find match section 'lease x.x.x.x {}' And remove this section clear dhcp-server lease 192.0.2.21 --- op-mode-definitions/clear-dhcp-server-lease.xml.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 op-mode-definitions/clear-dhcp-server-lease.xml.in (limited to 'op-mode-definitions/clear-dhcp-server-lease.xml.in') diff --git a/op-mode-definitions/clear-dhcp-server-lease.xml.in b/op-mode-definitions/clear-dhcp-server-lease.xml.in new file mode 100644 index 000000000..b1241588c --- /dev/null +++ b/op-mode-definitions/clear-dhcp-server-lease.xml.in @@ -0,0 +1,20 @@ + + + + + + + clear DHCP server lease + + + + + DHCP server lease + + sudo ${vyos_op_scripts_dir}/clear_dhcp_lease.py --ip $4 + + + + + + -- cgit v1.2.3