Facts, ports, management address, LLDP (per-port and top-level shapes), MAC table and PoE from a UniFi device record, which a controller's stat/device and the device's own mca-dump share. Fixtures from aiounifi (MIT) and abates/napalm-unifi (Apache-2.0), anonymised with tools/sanitize.py. Refs NetOrk/netork#2787
53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
[
|
|
{
|
|
"_id": "678a1b2c3d4e5f6071829304",
|
|
"attr_hidden_id": "WAN",
|
|
"attr_no_delete": true,
|
|
"enabled": true,
|
|
"name": "Primary (WAN1)",
|
|
"purpose": "wan",
|
|
"site_id": "5a32aa4ee4b0412345678910",
|
|
"wan_dns_preference": "auto",
|
|
"wan_failover_priority": 1,
|
|
"wan_load_balance_type": "weighted",
|
|
"wan_load_balance_weight": 80,
|
|
"wan_networkgroup": "WAN",
|
|
"wan_type": "dhcp"
|
|
},
|
|
{
|
|
"_id": "678a1b2c3d4e5f6071829305",
|
|
"attr_hidden_id": "WAN2",
|
|
"attr_no_delete": true,
|
|
"enabled": true,
|
|
"name": "Secondary (WAN2)",
|
|
"purpose": "wan",
|
|
"site_id": "5a32aa4ee4b0412345678910",
|
|
"wan_dns_preference": "auto",
|
|
"wan_failover_priority": 2,
|
|
"wan_load_balance_type": "weighted",
|
|
"wan_load_balance_weight": 20,
|
|
"wan_networkgroup": "WAN2",
|
|
"wan_type": "dhcp"
|
|
},
|
|
{
|
|
"_id": "678a1b2c3d4e5f6071829306",
|
|
"enabled": true,
|
|
"name": "Backup (5G)",
|
|
"purpose": "wan",
|
|
"site_id": "5a32aa4ee4b0412345678910",
|
|
"wan_failover_priority": 3,
|
|
"wan_load_balance_type": "failover-only",
|
|
"wan_networkgroup": "WAN3"
|
|
},
|
|
{
|
|
"_id": "678a1b2c3d4e5f6071829307",
|
|
"enabled": true,
|
|
"internet_access_enabled": true,
|
|
"ip_subnet": "192.168.1.1/24",
|
|
"name": "Default",
|
|
"purpose": "corporate",
|
|
"site_id": "5a32aa4ee4b0412345678910",
|
|
"vlan_enabled": false
|
|
}
|
|
]
|