From 1f1915fca2734d47e2df653ef10bc14fbce74173 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 23 Dec 2022 17:31:36 +0100 Subject: dhcp: T4758: implement missing functionality from old script to new op-mode script Sorting DHCP pools and filtering for state can now be done using the new op-mode mode scripts in DHCP. This allows us to drop the old helpers show_dhcp.py and show_dhcpv6.py. --- op-mode-definitions/dhcp.xml.in | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (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 ce4026ff4..419abe7ad 100644 --- a/op-mode-definitions/dhcp.xml.in +++ b/op-mode-definitions/dhcp.xml.in @@ -16,7 +16,7 @@ Show DHCP server leases - sudo ${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet + ${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet @@ -25,25 +25,25 @@ service dhcp-server shared-network-name - sudo ${vyos_op_scripts_dir}/show_dhcp.py --leases --pool $6 + ${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --pool $6 Show DHCP server leases sorted by the specified key - + end hostname ip mac pool remaining start state - sudo ${vyos_op_scripts_dir}/show_dhcp.py --leases --sort $6 + ${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --sort $6 Show DHCP server leases with a specific state (can be multiple, comma-separated) - + abandoned active all backup expired free released reset - sudo ${vyos_op_scripts_dir}/show_dhcp.py --leases --state $(echo $6 | tr , " ") + ${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --state $6 @@ -51,7 +51,7 @@ Show DHCP server statistics - sudo ${vyos_op_scripts_dir}/show_dhcp.py --statistics + ${vyos_op_scripts_dir}/dhcp.py show_pool_statistics --family inet @@ -60,7 +60,7 @@ service dhcp-server shared-network-name - sudo ${vyos_op_scripts_dir}/show_dhcp.py --statistics --pool $6 + ${vyos_op_scripts_dir}/dhcp.py show_pool_statistics --family inet --pool $6 @@ -88,28 +88,28 @@ Show DHCPv6 server leases for a specific pool - + service dhcpv6-server shared-network-name - sudo ${vyos_op_scripts_dir}/show_dhcpv6.py --leases --pool $6 + ${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet6 --pool $6 Show DHCPv6 server leases sorted by the specified key - + end iaid_duid ip last_communication pool remaining state type - sudo ${vyos_op_scripts_dir}/show_dhcpv6.py --leases --sort $6 + ${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet6 --sort $6 Show DHCPv6 server leases with a specific state (can be multiple, comma-separated) - + abandoned active all backup expired free released reset - sudo ${vyos_op_scripts_dir}/show_dhcpv6.py --leases --state $(echo $6 | tr , " ") + ${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet6 --state $6 -- cgit v1.2.3