make sure OVS_PHYSICAL_BRIDGE is up before bring up vlan interface
we need to make sure before we bring up vlan interface on "configure_ironic_provision_network:723" that OVS_PHYSICAL_BRIDGE is up. otherwise we can fail (RTNETLINK answers: Network is down) This issue discover on a unique configurations I run different biridges for external network (PUBLIC_BRIDGE) and internal bridge (OVS_PHYSICAL_BRIDGE) so devstack don't seem to bring up ovs bridge. Change-Id: I80f29075cff47c96ac70c13717dcf13475065f83
This commit is contained in:
parent
713a440884
commit
70504de1e3
@ -719,6 +719,7 @@ function configure_ironic_provision_network {
|
||||
# othervise assign ip to br interface directly.
|
||||
if [[ "$IRONIC_PROVISION_PROVIDER_NETWORK_TYPE" == "vlan" ]]; then
|
||||
sudo ip link add link $OVS_PHYSICAL_BRIDGE name $OVS_PHYSICAL_BRIDGE.$IRONIC_PROVISION_SEGMENTATION_ID type vlan id $IRONIC_PROVISION_SEGMENTATION_ID
|
||||
sudo ip link set dev $OVS_PHYSICAL_BRIDGE up
|
||||
sudo ip link set dev $OVS_PHYSICAL_BRIDGE.$IRONIC_PROVISION_SEGMENTATION_ID up
|
||||
sudo ip addr add dev $OVS_PHYSICAL_BRIDGE.$IRONIC_PROVISION_SEGMENTATION_ID $ironic_provision_network_ip/$provision_net_prefix
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user