summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2026-04-14 03:46:14 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2026-05-29 16:25:03 -0500
commit845f53098d4b6fcb49519577df4e79d6849a9cc8 (patch)
treebcc13c55df8bbb14a018ed2937049b0c1b9fbb69
parent8a319ecce79dc0783e6bd8ade8ac9bf8030caf1e (diff)
downloadvyos-1x-845f53098d4b6fcb49519577df4e79d6849a9cc8.tar.gz
vyos-1x-845f53098d4b6fcb49519577df4e79d6849a9cc8.zip
dhcpv4: T8941: Support filter/sorting combination on DHCPv4 server leases
-rw-r--r--op-mode-definitions/dhcp.xml.in92
1 files changed, 90 insertions, 2 deletions
diff --git a/op-mode-definitions/dhcp.xml.in b/op-mode-definitions/dhcp.xml.in
index da14359f2..d31b58550 100644
--- a/op-mode-definitions/dhcp.xml.in
+++ b/op-mode-definitions/dhcp.xml.in
@@ -112,6 +112,17 @@
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --vrf '' --origin $6</command>
+ <children>
+ <tagNode name="sort">
+ <properties>
+ <help>Show DHCP server leases sorted by the specified key</help>
+ <completionHelp>
+ <list>end hostname ip mac pool remaining start state</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --vrf '' --origin $6 --sort $8</command>
+ </tagNode>
+ </children>
</tagNode>
<tagNode name="pool">
<properties>
@@ -121,6 +132,17 @@
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --vrf '' --pool $6</command>
+ <children>
+ <tagNode name="sort">
+ <properties>
+ <help>Show DHCP server leases sorted by the specified key</help>
+ <completionHelp>
+ <list>end hostname ip mac remaining start state</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --vrf '' --pool $6 --sort $8</command>
+ </tagNode>
+ </children>
</tagNode>
<tagNode name="sort">
<properties>
@@ -139,6 +161,17 @@
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --vrf '' --state $6</command>
+ <children>
+ <tagNode name="sort">
+ <properties>
+ <help>Show DHCP server leases sorted by the specified key</help>
+ <completionHelp>
+ <list>end hostname ip mac pool remaining start</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --vrf '' --state $6 --sort $8</command>
+ </tagNode>
+ </children>
</tagNode>
</children>
</node>
@@ -156,12 +189,23 @@
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/dhcp.py show_server_static_mappings --family inet --vrf '' --pool $6</command>
+ <children>
+ <tagNode name="sort">
+ <properties>
+ <help>Show DHCP server static mappings sorted by the specified key</help>
+ <completionHelp>
+ <list>duid hostname ip mac</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/dhcp.py show_server_static_mappings --family inet --vrf '' --pool $6 --sort $8</command>
+ </tagNode>
+ </children>
</tagNode>
<tagNode name="sort">
<properties>
<help>Show DHCP server static mappings sorted by the specified key</help>
<completionHelp>
- <list>ip mac duid pool</list>
+ <list>duid hostname ip mac pool</list>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/dhcp.py show_server_static_mappings --family inet --vrf '' --sort $6</command>
@@ -207,6 +251,17 @@
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --vrf $5 --origin $8</command>
+ <children>
+ <tagNode name="sort">
+ <properties>
+ <help>Show DHCP server leases sorted by the specified key</help>
+ <completionHelp>
+ <list>end hostname ip mac pool remaining start state</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --vrf $5 --origin $8 --sort $10</command>
+ </tagNode>
+ </children>
</tagNode>
<tagNode name="pool">
<properties>
@@ -216,6 +271,17 @@
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --vrf $5 --pool $8</command>
+ <children>
+ <tagNode name="sort">
+ <properties>
+ <help>Show DHCP server leases sorted by the specified key</help>
+ <completionHelp>
+ <list>end hostname ip mac remaining start state</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --vrf $5 --pool $8 --sort $10</command>
+ </tagNode>
+ </children>
</tagNode>
<tagNode name="sort">
<properties>
@@ -234,6 +300,17 @@
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --vrf $5 --state $8</command>
+ <children>
+ <tagNode name="sort">
+ <properties>
+ <help>Show DHCP server leases sorted by the specified key</help>
+ <completionHelp>
+ <list>end hostname ip mac pool remaining start</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --vrf $5 --state $8 --sort $10</command>
+ </tagNode>
+ </children>
</tagNode>
</children>
</node>
@@ -251,12 +328,23 @@
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/dhcp.py show_server_static_mappings --family inet --vrf $5 --pool $8</command>
+ <children>
+ <tagNode name="sort">
+ <properties>
+ <help>Show DHCP server static mappings sorted by the specified key</help>
+ <completionHelp>
+ <list>duid hostname ip mac</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/dhcp.py show_server_static_mappings --family inet --vrf $5 --pool $8 --sort $10</command>
+ </tagNode>
+ </children>
</tagNode>
<tagNode name="sort">
<properties>
<help>Show DHCP server static mappings sorted by the specified key</help>
<completionHelp>
- <list>ip mac duid pool</list>
+ <list>duid hostname ip mac pool</list>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/dhcp.py show_server_static_mappings --family inet --vrf $5 --sort $8</command>