summaryrefslogtreecommitdiff
path: root/op-mode-definitions/dhcp.xml
diff options
context:
space:
mode:
authorhagbard-01 <39653662+hagbard-01@users.noreply.github.com>2019-06-27 11:42:04 -0700
committerGitHub <noreply@github.com>2019-06-27 11:42:04 -0700
commit9cf9fbaaa0f6c22483a8ab8ad8f79e34b12fbed0 (patch)
treeb8c729c134af5b4375cfbef2000e6fac1ca3e9af /op-mode-definitions/dhcp.xml
parentc097bd8a07b7417fa9ea1ea47aa1c3645add9714 (diff)
parent89995dcec3a2a6b9112f11cf1c9e4a1bcb4d66d6 (diff)
downloadvyos-1x-9cf9fbaaa0f6c22483a8ab8ad8f79e34b12fbed0.tar.gz
vyos-1x-9cf9fbaaa0f6c22483a8ab8ad8f79e34b12fbed0.zip
Merge pull request #77 from jjakob/T1470-improve-show-dhcpv6-server-leases
T1470: improve output of "show dhcpv6 server leases"
Diffstat (limited to 'op-mode-definitions/dhcp.xml')
-rw-r--r--op-mode-definitions/dhcp.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/op-mode-definitions/dhcp.xml b/op-mode-definitions/dhcp.xml
index 85403af6f..989c8274a 100644
--- a/op-mode-definitions/dhcp.xml
+++ b/op-mode-definitions/dhcp.xml
@@ -59,6 +59,35 @@
<help>Show DHCPv6 server leases</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/show_dhcpv6.py --leases</command>
+ <children>
+ <tagNode name="pool">
+ <properties>
+ <help>Show DHCPv6 server leases for a specific pool</help>
+ <completionHelp>
+ <script>sudo ${vyos_op_scripts_dir}/show_dhcpv6.py --allowed pool</script>
+ </completionHelp>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/show_dhcpv6.py --leases --pool $6</command>
+ </tagNode>
+ <tagNode name="sort">
+ <properties>
+ <help>Show DHCPv6 server leases sorted by the specified key</help>
+ <completionHelp>
+ <script>sudo ${vyos_op_scripts_dir}/show_dhcpv6.py --allowed sort</script>
+ </completionHelp>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/show_dhcpv6.py --leases --sort $6</command>
+ </tagNode>
+ <tagNode name="state">
+ <properties>
+ <help>Show DHCPv6 server leases with a specific state</help>
+ <completionHelp>
+ <script>sudo ${vyos_op_scripts_dir}/show_dhcpv6.py --allowed state</script>
+ </completionHelp>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/show_dhcpv6.py --leases --state $6</command>
+ </tagNode>
+ </children>
</node>
</children>
</node>