Sfoglia il codice sorgente

added native ovs bonding

pull/172/head
Tomas Pipota 6 anni fa
parent
commit
95ec31e745
3 ha cambiato i file con 23 aggiunte e 1 eliminazioni
  1. +11
    -0
      README.rst
  2. +5
    -1
      linux/network/interface.sls
  3. +7
    -0
      tests/pillar/network_openvswitch.sls

+ 11
- 0
README.rst Vedi File

@@ -1808,6 +1808,17 @@ Set up custom TX queue length for tap interfaces:
network:
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 NIC**

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

@@ -168,7 +168,11 @@ ovs_bridge_up_{{ interface_name }}:
- file: ovs_bridge_{{ interface_name }}
- 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' %}


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

@@ -48,3 +48,10 @@ linux:
type: ovs_port
ovs_bridge: br-ens0
bridge: br-ens0
bond1:
enabled: true
type: ovs_bond
mode: balance-slb
bridge: br-ex
slaves: eno3 eno4


Loading…
Annulla
Salva