bridge_ports
List RouterOS bridge port memberships and VLAN-related settings to identify which physical interface a VLAN applies to on a managed switch.
Instructions
List bridge port membership (/interface/bridge/port): bridge,
interface, pvid, disabled, edge, horizon, learn,
comment. Only disabled is normalized to bool | None
(formatting.coerce_ros_bool) - edge/learn are RouterOS enums
(e.g. auto/yes/no/yes-discover/no-discover), not strict
booleans, so they are left as RouterOS's own raw value rather than
coerced.
Use this (with bridge_vlans below) to see which physical port of
a managed switch's bridge a VLAN actually applies to - bridge_hosts
only shows the MAC table, not port/VLAN configuration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |