There is also second problem with updating segmentation_id.
In ML2 plugin, in https://github.com/openstack/neutron/blob/1654bc1179bb34b4a9729bf5b3fd65363e4cf872/neutron/plugins/ml2/plugin.py#L852 there is neutron_lib.objects.utils.NotIn filter class used but it don't works properly here as to get number of ports, Port object's method isn't used at all. So this also should be fixed as currently there is warning like:
1292, u"Truncated incorrect DOUBLE value: 'ovs'"
and this is removed from filters. That makes update of segmentation id impossible if there is ANY port in network already created.
There is also second problem with updating segmentation_id.
In ML2 plugin, in https:/ /github. com/openstack/ neutron/ blob/1654bc1179 bb34b4a9729bf5b 3fd65363e4cf872 /neutron/ plugins/ ml2/plugin. py#L852 there is neutron_ lib.objects. utils.NotIn filter class used but it don't works properly here as to get number of ports, Port object's method isn't used at all.
So this also should be fixed as currently there is warning like:
1292, u"Truncated incorrect DOUBLE value: 'ovs'"
and this is removed from filters. That makes update of segmentation id impossible if there is ANY port in network already created.