summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2023-11-28 16:41:33 +0000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-12-07 15:55:03 +0000
commit6eb78b48d67fa03802e6b476c9ea757a8cc5b86a (patch)
tree586dd559bc23400d2fecac78cf2ab7bcc38fe1f8 /op-mode-definitions
parent41b49bad0e1a17125bf1fe40bb4a0e7196f253dd (diff)
downloadvyos-1x-6eb78b48d67fa03802e6b476c9ea757a8cc5b86a.tar.gz
vyos-1x-6eb78b48d67fa03802e6b476c9ea757a8cc5b86a.zip
T5778: dhcp server: fix op-mode command <show dhcp server leases ...>.
(cherry picked from commit 57761a370d2217eeb79827e8c20384f6de649c66)
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>