aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts/ifup-plusb
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2020-12-03 14:33:07 +0100
committerGitHub <noreply@github.com>2020-12-03 14:33:07 +0100
commit0ac0949b03cdfc2c06ba997e9b3b890a5ca17b1f (patch)
treea9244eff6f07459021449e22f33b8af96e23ca4d /network-scripts/ifup-plusb
parentab9a243d079d4e2122e094ae89d02d5ee7a4b791 (diff)
downloadinitscripts-0ac0949b03cdfc2c06ba997e9b3b890a5ca17b1f.tar
initscripts-0ac0949b03cdfc2c06ba997e9b3b890a5ca17b1f.tar.gz
initscripts-0ac0949b03cdfc2c06ba997e9b3b890a5ca17b1f.tar.bz2
initscripts-0ac0949b03cdfc2c06ba997e9b3b890a5ca17b1f.tar.xz
initscripts-0ac0949b03cdfc2c06ba997e9b3b890a5ca17b1f.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>
Diffstat (limited to 'network-scripts/ifup-plusb')
-rwxr-xr-xnetwork-scripts/ifup-plusb2
1 files changed, 1 insertions, 1 deletions
diff --git a/network-scripts/ifup-plusb b/network-scripts/ifup-plusb
index 1b29afeb..2b2c2c5c 100755
--- a/network-scripts/ifup-plusb
+++ b/network-scripts/ifup-plusb
@@ -29,7 +29,7 @@ if [ ${BROADCAST} != "" ] ; then
else
ip addr add ${IPADDR} peer ${REMIP}/${PREFIX} dev ${DEVICE}
fi
-ip link set up dev ${DEVICE}
+set_link_up ${DEVICE}
. /etc/sysconfig/network