diff options
author | Jan Macku <jamacku@redhat.com> | 2020-12-03 14:33:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 14:33:07 +0100 |
commit | 0ac0949b03cdfc2c06ba997e9b3b890a5ca17b1f (patch) | |
tree | a9244eff6f07459021449e22f33b8af96e23ca4d /network-scripts/ifup | |
parent | ab9a243d079d4e2122e094ae89d02d5ee7a4b791 (diff) | |
download | initscripts-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')
-rwxr-xr-x | network-scripts/ifup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network-scripts/ifup b/network-scripts/ifup index 8ad78ef0..a0530779 100755 --- a/network-scripts/ifup +++ b/network-scripts/ifup @@ -122,7 +122,7 @@ if is_true "${VLAN}" && is_false "$ISALIAS" && [ -n "$DEVICE" ]; then } # Link on Physical device needs to be up but no ip required - check_device_down ${PHYSDEV} && { ip -o link set dev ${PHYSDEV} up; } + check_device_down ${PHYSDEV} && set_link_up ${PHYSDEV} if [ ! -f /proc/net/vlan/${DEVICE} ]; then if is_false "${REORDER_HDR}"; then |