
find is used instead of ls as we can select the 'link' type with find only the link type is needed because files do not have interface properties and directories are not used for this area of /sys As an example, the bonding_masters exists in /sys/class/net/ as a file without any 'subdirectory' of information to it. Change-Id: Id31fcfb858c6abff4d44444e019f0d48e4f3c671
Configures a VXLAN virtual network overlay through an openvswitch network bridge between a 'switch' node and 'peer' nodes.
This allows members of the bridge to communicate with each other through the virtual network.
By default, this role will:
- Install and start
openvswitch
- Set up a
br-infra
bridge on all nodes - Set up the connectivity between the switch and the peer with a virtual port
- Set up an ip address on the bridge interface:
172.24.4.1/23 # switch node
172.41.4.2/23 # first peer
172.41.4.3/23 # second peer
...
Role requirements
This role requires and expects two groups to be set up in the Ansible host inventory in order to work:
switch
(the node acting as the switch)peers
(nodes connected to the virtual switch ports)
Role variables