diff options
author | Christian Breunig <christian@breunig.cc> | 2023-07-29 22:53:57 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-07-29 22:56:34 +0200 |
commit | 7826a0e35e25e3d0e1a782c9507d49352e3dd720 (patch) | |
tree | 69cb91e340f6a553d3d896c7724a10e5099b7402 /debian/vyos-1x.postinst | |
parent | 399edb32eb68ce5fa3189ff83f09b307c6e9222d (diff) | |
download | vyos-1x-7826a0e35e25e3d0e1a782c9507d49352e3dd720.tar.gz vyos-1x-7826a0e35e25e3d0e1a782c9507d49352e3dd720.zip |
T3355: migrate "show dhcp client lease" to new op-mode style
vyos@vyos# ${vyos_op_scripts_dir}/dhcp.py show_client_leases --family inet --interface eth0.10
Interface eth0.10
IP address 172.16.33.123 [Active]
Subnet Mask 255.255.255.0
Domain Name vyos.net
Router 172.16.33.254
Name Server 172.16.254.30
DHCP Server 172.16.33.254
DHCP Server 86400
Last Update Sat Jul 29 21:13:32 CEST 2023
Expiry Sun Jul 30 21:13:31 CEST 2023
vyos@vyos# ${vyos_op_scripts_dir}/dhcp.py show_client_leases --family inet --interface eth0.10 --raw
[
{
"last_update": "Sat Jul 29 21:13:32 CEST 2023",
"reason": "BOUND",
"interface": "eth0.10",
"new_expiry": "1690744411",
"new_dhcp_lease_time": "86400",
"medium": "",
"alias_ip_address": "",
"new_ip_address": "172.16.33.123",
"new_broadcast_address": "172.16.33.255",
"new_subnet_mask": "255.255.255.0",
"new_domain_name": "vyos.net",
"new_network_number": "172.16.33.0",
"new_domain_name_servers": "172.16.254.30",
"new_routers": "172.16.33.254",
"new_static_routes": "",
"new_dhcp_server_identifier": "172.16.33.254",
"new_dhcp_message_type": "5",
"old_ip_address": "",
"old_subnet_mask": "",
"old_domain_name": "",
"old_domain_name_servers": "",
"old_routers": "",
"old_static_routes": ""
}
]
Diffstat (limited to 'debian/vyos-1x.postinst')
0 files changed, 0 insertions, 0 deletions