diff options
author | Christian Breunig <christian@breunig.cc> | 2023-07-30 20:54:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-30 20:54:31 +0200 |
commit | a92e7761b2f9d61a068f796b4c45d03d3ac60343 (patch) | |
tree | 199b6733fe89e4c9531e59d42c1ccce7a073f5b3 /op-mode-definitions | |
parent | 019f90fb65cb243a3ab01ef3e06a39396750cbbd (diff) | |
parent | 7826a0e35e25e3d0e1a782c9507d49352e3dd720 (diff) | |
download | vyos-1x-a92e7761b2f9d61a068f796b4c45d03d3ac60343.tar.gz vyos-1x-a92e7761b2f9d61a068f796b4c45d03d3ac60343.zip |
Merge pull request #2120 from c-po/t3355-show-dhcp-client
T3355: migrate "show dhcp client lease" to new op-mode style
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/dhcp.xml.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/op-mode-definitions/dhcp.xml.in b/op-mode-definitions/dhcp.xml.in index 66584efc3..6855fe447 100644 --- a/op-mode-definitions/dhcp.xml.in +++ b/op-mode-definitions/dhcp.xml.in @@ -7,6 +7,30 @@ <help>Show DHCP (Dynamic Host Configuration Protocol) information</help> </properties> <children> + <node name="client"> + <properties> + <help>Show DHCP client information</help> + </properties> + <children> + <node name="leases"> + <properties> + <help>Show DHCP client leases</help> + </properties> + <children> + <tagNode name="interface"> + <properties> + <help> Show DHCP client information for a given interface</help> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces --broadcast</script> + </completionHelp> + </properties> + <command>${vyos_op_scripts_dir}/dhcp.py show_client_leases --family inet --interface $6</command> + </tagNode> + </children> + <command>${vyos_op_scripts_dir}/dhcp.py show_client_leases --family inet</command> + </node> + </children> + </node> <node name="server"> <properties> <help>Show DHCP server information</help> |