2) The code do not report correctly the wrong input. In case the physical network is not provided and the network type is VLAN, the server should not hit this code path. I'll push a patch to fix that.
In any case, you can skip this error providing the correct input in the network creation parameter.
Hello yangjianfeng:
1) When "network_ segment_ range" service plugin is required, you need to specify the provider physical network:
$ openstack network create --provider- network- type vlan --provider- physical- network physnet2 net10
2) The code do not report correctly the wrong input. In case the physical network is not provided and the network type is VLAN, the server should not hit this code path. I'll push a patch to fix that.
In any case, you can skip this error providing the correct input in the network creation parameter.
Regards.