Network configuration tools require the Local Gateway API (
UNIFI_API_TYPE=local). Cloud API modes provide read-only access to network information only.What you can do
List and inspect networks
View all networks, VLANs, and subnets with their DHCP configuration.
Create networks
Create new networks and VLANs with custom DHCP, subnets, and purposes.
Update and delete
Modify existing network settings or remove networks you no longer need.
Port forwarding
Configure external port forwarding rules for internal services.
Listing networks and VLANs
Example prompts:- “Show me all VLANs on this site”
- “What networks are configured?”
- “What is the DHCP range for the guest network?”
- List all VLANs
- Get network details
- Subnet and DHCP info
Network usage statistics
Get per-network bandwidth and client counts in one call. Example prompt: “How much bandwidth is each VLAN using right now?”Creating a network
Usecreate_network to add a new network or VLAN. Always pass confirm=True to execute. Pass dry_run=True first to preview the payload that will be sent.
Example prompts:
- “Create a VLAN 20 for IoT devices with the subnet 192.168.20.0/24”
- “Add a new guest network on VLAN 100”
1
Preview the change
2
Create the network
Network creation parameters
Updating a network
Example prompt: “Change the DHCP lease time on the LAN to 48 hours”Deleting a network
Example prompt: “Delete the old test VLAN 99”Port forwarding
Port forwarding rules let external traffic reach internal services. You can list, create, and delete rules through the AI assistant. Example prompts:- “Forward port 8080 from the internet to my web server at 192.168.2.100”
- “Show all port forwarding rules”
- “Remove the old Minecraft server port forward”