From 0ac0949b03cdfc2c06ba997e9b3b890a5ca17b1f Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Thu, 3 Dec 2020 14:33:07 +0100 Subject: 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 --- network-scripts/ifup-plusb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'network-scripts/ifup-plusb') 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 -- cgit v1.2.1