68 lines
1.4 KiB
JSON
68 lines
1.4 KiB
JSON
{
|
|
"client_requirement": "client_is_viewer+",
|
|
"items": [
|
|
{
|
|
"type": "header_page_title",
|
|
"items": [
|
|
{
|
|
"type": "h1",
|
|
"text": "DHCP Leases"
|
|
},
|
|
{
|
|
"type": "p",
|
|
"text": "Active leases handed out by dnsmasq across all VLANs."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "table",
|
|
"datasource": "live:dhcp_leases",
|
|
"empty_message": "No active DHCP leases found.",
|
|
"toolbar": {
|
|
"items": [
|
|
{
|
|
"type": "select",
|
|
"name": "vlan_filter",
|
|
"value": "all",
|
|
"filter_col": "vlan_name",
|
|
"options": "%VLAN_FILTER_OPTIONS%"
|
|
}
|
|
]
|
|
},
|
|
"columns": [
|
|
{
|
|
"label": "Hostname",
|
|
"field": "hostname",
|
|
"render": "raw_html"
|
|
},
|
|
{
|
|
"label": "IP Address",
|
|
"field": "ip_address",
|
|
"class": "col-mono"
|
|
},
|
|
{
|
|
"label": "MAC Address",
|
|
"field": "mac_address",
|
|
"class": "col-mono"
|
|
},
|
|
{
|
|
"label": "Vendor",
|
|
"field": "vendor",
|
|
"render": "raw_html"
|
|
},
|
|
{
|
|
"label": "VLAN",
|
|
"field": "vlan_name"
|
|
},
|
|
{
|
|
"label": "Last Renewal",
|
|
"field": "last_active"
|
|
},
|
|
{
|
|
"label": "Renews",
|
|
"field": "renews"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|