diff options
author | Jan Macku <jamacku@redhat.com> | 2020-12-15 10:07:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 10:07:50 +0100 |
commit | e0c58b190523421347021029cd4516c7fc5db0bc (patch) | |
tree | 7db22e00645da1958f391af60c91ab2324b3cd3f /network-scripts/ifup-ctc | |
parent | 748122158d6b7007a49b38a78f22a749f1d2786d (diff) | |
download | initscripts-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-x | network-scripts/ifup-ctc | 2 |
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 |