[Openstack-operators] Openvswitch flat and provider in the same bond
Dan Sneddon
dsneddon at redhat.com
Wed Apr 19 18:19:19 UTC 2017
On 04/19/2017 09:02 AM, Ignazio Cassano wrote:
> Dear All, in my openstack Newton installation compute e controllers
> node have e separate management network nic and a lacp bond0 where
> provider vlan (555,556) and flat vlan (567) are trunked.
> Since I cannot specify the vlan id (567) when I create a flat network, I
> need to know how I can create the bridge for flat network in openvswitch.
> For providers network I created a bridge br-ex and added bond0 to that
> bridge and configured openvswitch agent and ml2 for mapping br-ex.
> I don't know what can I do for flat network : must I create another
> bridge ? What interface I must add to the bridge for flat (567) network ?
> I configured the same scenario with linuxbridge mechanism driver and it
> seems more easy to do.
> Sorry for my bad english.
> Regards
> Ignazio
I assume that the VLAN 567 is the native (untagged) VLAN on the port in
question? If that's so, you can do the following:
Create two provider networks of "provider:network_type vlan", plus one
provider network with "provider:network_type flat", with all three using
the same physical network.
neutron net-create --provider:physical_network datacentre \
--provider:network_type vlan --provider:segmentation_id 555 \
--shared <net-name1>
neutron net-create --provider:physical_network datacentre \
--provider:network_type vlan --provider:segmentation_id 556 \
--shared <net-name2>
neutron net-create --provider:physical_network datacentre \
--provider:network_type flat --shared <net-name3>
Of course, remove shared if you don't want tenants directly attaching to
any of the above networks, and add "--router:external" if any of these
are to be used for SNAT/floating IP.
--
Dan Sneddon | Senior Principal Software Engineer
dsneddon at redhat.com | redhat.com/openstack
dsneddon:irc | @dxs:twitter
More information about the OpenStack-operators
mailing list