Merge "Use "ip" commands to replace "ifconfig" commands"

This commit is contained in:
Jenkins 2017-03-10 10:45:15 +00:00 committed by Gerrit Code Review
commit 959bf06737
1 changed files with 2 additions and 2 deletions

View File

@ -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 {