Browse Source

One should be able to change ovs port type if its not virtual.

If ovs port is virtual, we use OVSIntPort to create it.
Otherwise it should be OVSPort.
I've added new key: ovs_port_type to not intersect with current
deployments and not hurt anyone.

I've updated doc to have an example of ovs peering patch.
Customer-Found

Change-Id: Ieddb5fcc02d410c3cc14c89737992690cb5f3975
pull/123/head
Dmitry Stremkouski 7 years ago
parent
commit
a581ea7187
3 changed files with 47 additions and 1 deletions
  1. +38
    -0
      README.rst
  2. +1
    -1
      linux/files/ovs_port
  3. +8
    -0
      tests/pillar/network_openvswitch_dpdk.sls

+ 38
- 0
README.rst View File

netmask: 255.255.255.0 netmask: 255.255.255.0
use_interfaces: use_interfaces:
- eth1 - eth1
br-prv:
enabled: true
type: ovs_bridge
mtu: 65000
br-ens7:
enabled: true
name: br-ens7
type: ovs_bridge
proto: manual
mtu: 9000
use_interfaces:
- ens7
patch-br-ens7-br-prv:
enabled: true
name: ens7-prv
ovs_type: ovs_port
type: ovs_port
bridge: br-ens7
port_type: patch
peer: prv-ens7
mtu: 65000
patch-br-prv-br-ens7:
enabled: true
name: prv-ens7
bridge: br-prv
ovs_type: ovs_port
type: ovs_port
port_type: patch
peer: ens7-prv
mtu: 65000
ens7:
enabled: true
name: ens7
proto: manual
ovs_port_type: OVSPort
type: ovs_port
ovs_bridge: br-ens7
bridge: br-ens7


Debian manual proto interfaces Debian manual proto interfaces



+ 1
- 1
linux/files/ovs_port View File

auto {{ port_name }} auto {{ port_name }}
allow-{{ port.bridge }} {{ port_name }} allow-{{ port.bridge }} {{ port_name }}
iface {{ port_name }} inet {{ port.get('proto', 'manual') }} iface {{ port_name }} inet {{ port.get('proto', 'manual') }}
ovs_type OVSIntPort
ovs_type {{ port.get('ovs_port_type', 'OVSIntPort') }}
mtu {{ port.get('mtu', '1500') }} mtu {{ port.get('mtu', '1500') }}
ovs_bridge {{ port.bridge }} ovs_bridge {{ port.bridge }}
{%- if port.get('proto', 'manual') == 'static' %} {%- if port.get('proto', 'manual') == 'static' %}

+ 8
- 0
tests/pillar/network_openvswitch_dpdk.sls View File

br-prv: br-prv:
enabled: true enabled: true
type: dpdk_ovs_bridge type: dpdk_ovs_bridge
dummy0:
enabled: true
name: dummy0
proto: manual
ovs_port_type: OVSIntPort
type: ovs_port
ovs_bridge: br-prv
bridge: br-prv

Loading…
Cancel
Save