summaryrefslogtreecommitdiffstats
path: root/lib/container/start
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-10-06 10:00:33 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-10-13 12:58:03 +0000
commit71f9ec9e9bb47ae90bd563e8975f82ba79855ac6 (patch)
treefda159012bac1ad6d7678227bdcfd119fb5c7d8d /lib/container/start
parentUsing linux as fallback TERM in container list command. (diff)
downloadcompute-tools-71f9ec9e9bb47ae90bd563e8975f82ba79855ac6.tar.xz
compute-tools-71f9ec9e9bb47ae90bd563e8975f82ba79855ac6.zip
Using iproute instead of net-tools to setup interfaces.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlib/container/start8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/container/start b/lib/container/start
index 6d2c7a9..e2d94b5 100755
--- a/lib/container/start
+++ b/lib/container/start
@@ -316,8 +316,8 @@ then
cat > "/etc/network/interfaces.d/${INTERFACE}" << EOF
allow-hotplug ${INTERFACE}
iface ${INTERFACE} inet manual
- pre-up ifconfig ${INTERFACE} up
- post-down ifconfig ${INTERFACE} down
+ pre-up ip link set ${INTERFACE} up
+ post-down ip link set ${INTERFACE} down
EOF
done
@@ -347,10 +347,10 @@ EOF
cat > "/etc/network/interfaces.d/${INTERFACE}" << EOF
allow-hotplug ${INTERFACE}
iface ${INTERFACE} inet manual
- pre-up ifconfig ${INTERFACE} up
+ pre-up ip link set ${INTERFACE} up
post-up brctl addif ${BRIDGE} ${INTERFACE}
pre-down brctl delif ${BRIDGE} ${INTERFACE}
- post-down ifconfig ${INTERFACE} down
+ post-down ip link set ${INTERFACE} down
EOF
else