aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts/ifup-ctc
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2020-12-15 10:07:50 +0100
committerGitHub <noreply@github.com>2020-12-15 10:07:50 +0100
commite0c58b190523421347021029cd4516c7fc5db0bc (patch)
tree7db22e00645da1958f391af60c91ab2324b3cd3f /network-scripts/ifup-ctc
parent748122158d6b7007a49b38a78f22a749f1d2786d (diff)
downloadinitscripts-e0c58b190523421347021029cd4516c7fc5db0bc.tar
initscripts-e0c58b190523421347021029cd4516c7fc5db0bc.tar.gz
initscripts-e0c58b190523421347021029cd4516c7fc5db0bc.tar.bz2
initscripts-e0c58b190523421347021029cd4516c7fc5db0bc.tar.xz
initscripts-e0c58b190523421347021029cd4516c7fc5db0bc.zip
network: add option to keep the link down
Some interfaces like Open vSwitch bridges using the userspace datapath, needs the link to be kept down to avoid issues. Add a LINKSTATUS=[down|up] ifcfg parameter to add this functionality. If not specified, the link will default to up as before. Patch provided by Matteo Croce mcroce@redhat.com Resolves: #1555001
Diffstat (limited to 'network-scripts/ifup-ctc')
-rwxr-xr-xnetwork-scripts/ifup-ctc2
1 files changed, 1 insertions, 1 deletions
diff --git a/network-scripts/ifup-ctc b/network-scripts/ifup-ctc
index 83f754a0..89f50a09 100755
--- a/network-scripts/ifup-ctc
+++ b/network-scripts/ifup-ctc
@@ -26,7 +26,7 @@ fi
[ -z "$PREFIX" ] && eval $(/bin/ipcalc --prefix ${IPADDR} ${NETMASK})
ip addr add ${IPADDR} peer ${GATEWAY}/${PREFIX} dev ${DEVICE}
-ip link set up dev ${DEVICE}
+set_link_up ${DEVICE}
# Wait for the device to come up - the chandev'ified ctc driver can take
# quite a while...
timeout=0