allow_network_on_port_profile
Remove a VLAN network from a port profile's exclusion list to re-enable it, resolving D12 auto-exclusion warnings on UniFi switches.
Instructions
Atomically allow (un-exclude) a VLAN network on a switch port profile.
host: console name, ID, or composite ID (MAC:numericId format). site: site name or ID.
profile_id: REQUIRED. The port profile id; from list_port_profiles (its _id).
network_id: REQUIRED. The networkconf id to allow; from list_networks (its id) or
the resolved id fields in list_port_profiles output.
confirm: must be True to execute. This is a live PUT to a SHARED port profile
(its exclusion list affects every switch port using it); it refuses with an
error dict when confirm is False, before any controller call.
This is the D12 auto-exclusion remediation: it fresh-reads the profile, removes
network_id from excluded_networkconf_ids, PUTs, and returns
{profile, tagged_networks} with the resulting tagged VLAN set rendered with names.
Use it on every profile named in a create_network D12_AUTO_EXCLUSION warning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| site | Yes | ||
| confirm | No | ||
| network_id | Yes | ||
| profile_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||