summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-11-06 21:23:38 +0100
committerGitHub <noreply@github.com>2024-11-06 21:23:38 +0100
commitc97980d18610d8d48a726986139fed29ad03137a (patch)
tree91a6566e3234a25108f7678ff4ee4d7813d87f2c
parent09ca8e2a01fcef509d6f39e0abbe7a65fa1eb5b8 (diff)
parent1bd594c22c7a51d2b92e237df2294a6c2f7b37c8 (diff)
downloadvyos-1x-c97980d18610d8d48a726986139fed29ad03137a.tar.gz
vyos-1x-c97980d18610d8d48a726986139fed29ad03137a.zip
Merge pull request #4184 from natali-rs1985/T6852
dhcp_server: T6852: Add op mode command "show dhcpv6 server statistics"
-rw-r--r--op-mode-definitions/dhcp.xml.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/op-mode-definitions/dhcp.xml.in b/op-mode-definitions/dhcp.xml.in
index b3438ab80..63b1f62bb 100644
--- a/op-mode-definitions/dhcp.xml.in
+++ b/op-mode-definitions/dhcp.xml.in
@@ -228,6 +228,23 @@
</tagNode>
</children>
</node>
+ <node name="statistics">
+ <properties>
+ <help>Show DHCPv6 server statistics</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/dhcp.py show_pool_statistics --family inet6</command>
+ <children>
+ <tagNode name="pool">
+ <properties>
+ <help>Show DHCPv6 server statistics for a specific pool</help>
+ <completionHelp>
+ <path>service dhcpv6-server shared-network-name</path>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/dhcp.py show_pool_statistics --family inet6 --pool $6</command>
+ </tagNode>
+ </children>
+ </node>
</children>
</node>
</children>