Update network command destroy_network.sh
ifconfig and brctl are deprecated commands. They are replaced with ip command. Story: 2004646 Task: 28597 Change-Id: I24e2d53ae7f8b866eef665a85d1785df0527c82a Signed-off-by: Felipe de Jesus Ruiz Garcia <felipe_57@live.com.mx> Signed-off-by: Felipe de Jesus Ruiz Garcia <felipe.de.jesus.ruiz.garcia@intel.com>
This commit is contained in:
parent
3959af8ed5
commit
9c80c1908a
@ -7,7 +7,7 @@ EXTERNAL_IP=${EXTERNAL_IP:-10.10.10.1/24}
|
||||
for i in {1..4}; do
|
||||
BRIDGE_INTERFACE_NAME=${BRIDGE_INTERFACE}$i
|
||||
if [ -d "/sys/class/net/${BRIDGE_INTERFACE_NAME}" ]; then
|
||||
sudo ifconfig ${BRIDGE_INTERFACE_NAME} down
|
||||
sudo brctl delbr ${BRIDGE_INTERFACE_NAME}
|
||||
sudo ip link set dev ${BRIDGE_INTERFACE_NAME} down
|
||||
sudo ip link delete dev ${BRIDGE_INTERFACE_NAME}
|
||||
fi
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user