Use "ip" commands to replace "ifconfig" commands
It seems the 'ifconfig' does not exist on some CI hosts. And neutron related commands are also using ip commands. Change-Id: Id549340b8420423c92ee9443b9fd203aacffa89e Closes-bug: 1670952
This commit is contained in:
parent
f4a7f08a37
commit
366e333453
|
@ -380,8 +380,8 @@ function tacker_create_initial_network {
|
|||
SUBNET1_ID=$(openstack subnet create ${SUBNET1} --ip-version 4 --gateway ${NETWORK_GATEWAY1} --network ${NET1_ID} --subnet-range ${FIXED_RANGE1} | awk '/ id /{print $4}')
|
||||
|
||||
echo "Assign ip address to BR_MGMT"
|
||||
sudo ifconfig ${BR_MGMT} inet 0.0.0.0
|
||||
sudo ifconfig ${BR_MGMT} inet ${NETWORK_GATEWAY_MGMT_IP}
|
||||
sudo ip link set ${BR_MGMT} up
|
||||
sudo ip address add ${NETWORK_GATEWAY_MGMT_IP} dev ${BR_MGMT}
|
||||
}
|
||||
|
||||
function tacker_register_default_vim {
|
||||
|
|
Loading…
Reference in New Issue