summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2023-11-28 16:41:33 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2023-11-30 10:33:48 +0000
commit57761a370d2217eeb79827e8c20384f6de649c66 (patch)
treec70d299903618172ff64e0a6709644bf42b6004b /op-mode-definitions
parentda83b3f96dcedaa8e4d926d9f5bdc963abd9a813 (diff)
downloadvyos-1x-57761a370d2217eeb79827e8c20384f6de649c66.tar.gz
vyos-1x-57761a370d2217eeb79827e8c20384f6de649c66.zip
T5778: dhcp server: fix op-mode command <show dhcp server leases ...>.
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/dhcp.xml.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/op-mode-definitions/dhcp.xml.in b/op-mode-definitions/dhcp.xml.in
index 6855fe447..9c2e2be76 100644
--- a/op-mode-definitions/dhcp.xml.in
+++ b/op-mode-definitions/dhcp.xml.in
@@ -42,6 +42,15 @@
</properties>
<command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet</command>
<children>
+ <tagNode name="origin">
+ <properties>
+ <help>Show DHCP server leases granted by local or remote DHCP server</help>
+ <completionHelp>
+ <list>local remote</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/dhcp.py show_server_leases --family inet --origin $6</command>
+ </tagNode>
<tagNode name="pool">
<properties>
<help>Show DHCP server leases for a specific pool</help>