[neutron][ovn] VLAN Ranges
Hi, I am using neutron xena release with OVN. I have currently defined the vlan range "network_vlan_ranges = vlannet1:3500:3600" in ml2_conf.ini. I have set bridge mapping via ovs with the below command. ovs-vsctl set open . external-ids:ovn-bridge-mappings=vlannet1:br-vlan Now I have to add a new vlan range. Can anyone confirm the syntax of ml2_conf.ini and bridge mapping. network_vlan_ranges = vlannet1:3500:3600,vlannet2:300:400 ovs-vsctl set open . external-ids:ovn-bridge-mappings=vlannet1:br-vlan,vlannet2:br-vlan Need to confirm the correct way to add new vlan range if the server is currently live ? Can we use the same bridge with two different mapping i.e vlannet1 and vlannet2 ? Ammad
Hi, On środa, 15 grudnia 2021 22:19:23 CET Ammad Syed wrote:
Hi,
I am using neutron xena release with OVN. I have currently defined the vlan range "network_vlan_ranges = vlannet1:3500:3600" in ml2_conf.ini.
I have set bridge mapping via ovs with the below command.
ovs-vsctl set open . external-ids:ovn-bridge-mappings=vlannet1:br-vlan
Now I have to add a new vlan range. Can anyone confirm the syntax of ml2_conf.ini and bridge mapping.
network_vlan_ranges = vlannet1:3500:3600,vlannet2:300:400
That syntax is correct. This config option is comma-separated list of physnets and ranges as You did above.
ovs-vsctl set open . external-ids:ovn-bridge-mappings=vlannet1:br-vlan,vlannet2:br-vlan
Need to confirm the correct way to add new vlan range if the server is currently live ? Can we use the same bridge with two different mapping i.e vlannet1 and vlannet2 ?
No. On bridge can be mapped to one physical network. We even had proposal to change it recently: https://bugs.launchpad.net/neutron/+bug/1952867 but finally we decided that we don't want to allow that.
Ammad
-- Slawek Kaplonski Principal Software Engineer Red Hat
Thanks Slawek. Is it possible to define two vlan ranges for one physnet for example 200 to 300 and 3500 to 3600? Ammad On Thu, Dec 16, 2021 at 12:42 PM Slawek Kaplonski <skaplons@redhat.com> wrote:
Hi,
On środa, 15 grudnia 2021 22:19:23 CET Ammad Syed wrote:
Hi,
I am using neutron xena release with OVN. I have currently defined the vlan range "network_vlan_ranges = vlannet1:3500:3600" in ml2_conf.ini.
I have set bridge mapping via ovs with the below command.
ovs-vsctl set open . external-ids:ovn-bridge-mappings=vlannet1:br-vlan
Now I have to add a new vlan range. Can anyone confirm the syntax of ml2_conf.ini and bridge mapping.
network_vlan_ranges = vlannet1:3500:3600,vlannet2:300:400
That syntax is correct. This config option is comma-separated list of physnets and ranges as You did above.
ovs-vsctl set open . external-ids:ovn-bridge-mappings=vlannet1:br-vlan,vlannet2:br-vlan
Need to confirm the correct way to add new vlan range if the server is currently live ? Can we use the same bridge with two different mapping
i.e
vlannet1 and vlannet2 ?
No. On bridge can be mapped to one physical network. We even had proposal to change it recently: https://bugs.launchpad.net/neutron/+bug/1952867 but finally we decided that we don't want to allow that.
Ammad
-- Slawek Kaplonski Principal Software Engineer Red Hat
-- Regards, Syed Ammad Ali
Hi, On czwartek, 16 grudnia 2021 09:06:26 CET Ammad Syed wrote:
Thanks Slawek. Is it possible to define two vlan ranges for one physnet for example 200 to 300 and 3500 to 3600?
Looking at https://github.com/openstack/neutron-lib/blob/master/neutron_lib/ plugins/utils.py#L204 which is used to parse that config option, it is possible. I don't know what version of Neutron You are using, but since few releases we have possbility to configure segment ranges by API. Please check https:// docs.openstack.org/api-ref/network/v2/index.html?expanded=create-network- segment-range-detail#network-segment-ranges for details.
Ammad
On Thu, Dec 16, 2021 at 12:42 PM Slawek Kaplonski <skaplons@redhat.com>
wrote:
Hi,
On środa, 15 grudnia 2021 22:19:23 CET Ammad Syed wrote:
Hi,
I am using neutron xena release with OVN. I have currently defined the
vlan
range "network_vlan_ranges = vlannet1:3500:3600" in ml2_conf.ini.
I have set bridge mapping via ovs with the below command.
ovs-vsctl set open . external-ids:ovn-bridge-mappings=vlannet1:br-vlan
Now I have to add a new vlan range. Can anyone confirm the syntax of ml2_conf.ini and bridge mapping.
network_vlan_ranges = vlannet1:3500:3600,vlannet2:300:400
That syntax is correct. This config option is comma-separated list of physnets and ranges as You did above.
ovs-vsctl set open . external-ids:ovn-bridge-mappings=vlannet1:br-vlan,vlannet2:br-vlan
Need to confirm the correct way to add new vlan range if the server is currently live ? Can we use the same bridge with two different mapping
i.e
vlannet1 and vlannet2 ?
No. On bridge can be mapped to one physical network. We even had proposal to change it recently: https://bugs.launchpad.net/neutron/+bug/1952867 but finally we decided that we don't want to allow that.
Ammad
-- Slawek Kaplonski Principal Software Engineer Red Hat
-- Slawek Kaplonski Principal Software Engineer Red Hat
participants (2)
-
Ammad Syed
-
Slawek Kaplonski