Browse Source

added native ovs bonding

pull/172/head
Tomas Pipota 6 years ago
parent
commit
95ec31e745
3 changed files with 23 additions and 1 deletions
  1. +11
    -0
      README.rst
  2. +5
    -1
      linux/network/interface.sls
  3. +7
    -0
      tests/pillar/network_openvswitch.sls

+ 11
- 0
README.rst View File

network: network:
tap_custom_txqueuelen: 10000 tap_custom_txqueuelen: 10000


Open vSwitch native bond:

.. code-block:: yaml

bond1:
enabled: true
type: ovs_bond
mode: balance-slb
bridge: br-ex
slaves: eno3 eno4

DPDK OVS interfaces DPDK OVS interfaces


**DPDK OVS NIC** **DPDK OVS NIC**

+ 5
- 1
linux/network/interface.sls View File

- file: ovs_bridge_{{ interface_name }} - file: ovs_bridge_{{ interface_name }}
- file: linux_interfaces_final_include - file: linux_interfaces_final_include



{%- elif interface.type == 'ovs_bond' %}
ovs_bond_{{ interface_name }}:
cmd.run:
- name: ovs-vsctl add-bond {{ interface.bridge }} {{ interface_name }} {{ interface.slaves }} bond_mode={{ interface.mode }}
- unless: ovs-vsctl show | grep -A 2 'Port.*{{ interface_name }}.'


{%- elif interface.type == 'ovs_port' %} {%- elif interface.type == 'ovs_port' %}



+ 7
- 0
tests/pillar/network_openvswitch.sls View File

type: ovs_port type: ovs_port
ovs_bridge: br-ens0 ovs_bridge: br-ens0
bridge: br-ens0 bridge: br-ens0
bond1:
enabled: true
type: ovs_bond
mode: balance-slb
bridge: br-ex
slaves: eno3 eno4


Loading…
Cancel
Save