<div dir="ltr"><div>Hi Lokendra:</div><div><br></div><div>The only place I found a documented reference is [1]. If the "--provider-segment" is given to the network creation command, that will override the VLAN ranges defined per physical network in "ml2_type_vlan:network_vlan_ranges". If no pre-allocated segment is found (this process is done during the Neutron server initialization), a new one is created with the parameters the user provided [2].</div><div><br></div><div>Regards.<br></div><div><br></div><div>[1]<a href="https://www.oreilly.com/library/view/learning-openstack-networking/9781788392495/e0069ba3-9b46-41d3-bf4f-7520779cb38d.xhtml">https://www.oreilly.com/library/view/learning-openstack-networking/9781788392495/e0069ba3-9b46-41d3-bf4f-7520779cb38d.xhtml</a></div><div>[2]<a href="https://github.com/openstack/neutron/blob/db83514d052ceede559894a1439c2b45eeebe933/neutron/plugins/ml2/drivers/helpers.py#L107-L113">https://github.com/openstack/neutron/blob/db83514d052ceede559894a1439c2b45eeebe933/neutron/plugins/ml2/drivers/helpers.py#L107-L113</a></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 18, 2022 at 10:22 AM Lokendra Rathour <<a href="mailto:lokendrarathour@gmail.com">lokendrarathour@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Team,<div>We have deployed tripl0 Train using two tenant networks by configuring the parameters for additional networks. </div><div>environments.yaml:</div><div>  <b>NeutronBridgeMappings: datacentre:br-tenant,datacentre2:br-extratenant</b><br><br>in environments/network-environment.yaml</div><div><b><br>  NeutronNetworkVLANRanges: 'datacentre:1:500,datacentre2:501:1000'<br></b></div><div><br><div>and have also isolated and separated the physical nic configuration for ovs in network/config/bond-with-vlans/compute.yaml</div><div><br></div><div>with this setting, overcloud is deployed and the network is getting created, Checking further, in Controller configs(/etc/neutron/plugins/ml2/)  we see the changes as below, which looks fine:</div><div><blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px"><div><div><div><b><br></b></div></div></div><div><div><div><b>[ml2_type_vlan]</b></div></div></div><div><div><div><b>network_vlan_ranges=datacentre:1:500,datacentre2:501:1000</b></div></div></div></blockquote><div><div><div><br></div><div></div></div></div></div><div><b>but it is also allowing</b> the network to be created from the wrong network segment range. </div><div>For example, while creating a network:</div><div><ul><li> openstack network create --share --provider-network-type vlan --provider-physical-network datacentre2 --provider-segment 420 datacenter_2_420</li></ul></div><div> -provider-physical-network-  <b>"datacentre2"</b> is having VLAN range from 501-1000 and if I am passing the provider segment as 420(which is out of range)   then <b>also a network is getting created.</b></div><div><div><br></div></div></div><div><div><div>This does not look fine. please help share any inputs on the same.</div>-- <br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">~ Lokendra<br></div><div>skype: lokendrarathour</div><div dir="ltr"><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4zyd6LpJOGqagxmzUlY59eMQx0-FN0t8HtjdtGE7VLZSKIxBUz3bI7z-MBqbgDVg1-XbtvHgN_ATJ10N6bonyO-JSGTtl5s_mNSbDoXBg" width="200" height="41"><br></div><div dir="ltr"><br></div></div></div></div></div></div></div>
</blockquote></div>