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: Ieddb5fcc02d410c3cc14c89737992690cb5f3975pull/123/head
@@ -907,6 +907,44 @@ OpenVswitch Bridges | |||
netmask: 255.255.255.0 | |||
use_interfaces: | |||
- 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 | |||
@@ -1,7 +1,7 @@ | |||
auto {{ port_name }} | |||
allow-{{ port.bridge }} {{ port_name }} | |||
iface {{ port_name }} inet {{ port.get('proto', 'manual') }} | |||
ovs_type OVSIntPort | |||
ovs_type {{ port.get('ovs_port_type', 'OVSIntPort') }} | |||
mtu {{ port.get('mtu', '1500') }} | |||
ovs_bridge {{ port.bridge }} | |||
{%- if port.get('proto', 'manual') == 'static' %} |
@@ -39,3 +39,11 @@ linux: | |||
br-prv: | |||
enabled: true | |||
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 |