openvswitch.openvswitch.openvswitch_port – Manage Open vSwitch ports¶
Note
This plugin is part of the openvswitch.openvswitch collection (version 1.1.0).
To install it use: ansible-galaxy collection install openvswitch.openvswitch
.
To use it in a playbook, specify: openvswitch.openvswitch.openvswitch_port
.
New in version 1.0.0: of openvswitch.openvswitch
Parameters¶
Examples¶
# Creates port eth2 on bridge br-ex
- openvswitch.openvswitch.openvswitch_port:
bridge: br-ex
port: eth2
state: present
# Creates port eth6
- openvswitch.openvswitch.openvswitch_port:
bridge: bridge-loop
port: eth6
state: present
set: Interface eth6
# Creates port vlan10 with tag 10 on bridge br-ex
- openvswitch.openvswitch.openvswitch_port:
bridge: br-ex
port: vlan10
tag: 10
state: present
set: Interface vlan10
# Assign interface id server1-vifeth6 and mac address 00:00:5E:00:53:23
# to port vifeth6 and setup port to be managed by a controller.
- openvswitch.openvswitch.openvswitch_port:
bridge: br-int
port: vifeth6
state: present
args:
external_ids:
iface-id: '{{ inventory_hostname }}-vifeth6'
attached-mac: 00:00:5E:00:53:23
vm-id: '{{ inventory_hostname }}'
iface-status: active
Authors¶
David Stygstra (@stygstra)