diff options
author | Jan Macku <jamacku@redhat.com> | 2020-07-24 13:46:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 13:46:14 +0200 |
commit | d137d6097a43687f98c642f172c48b94652ba067 (patch) | |
tree | 9492f6825be1d5a8da2da1d431c7eeac0c38f21a /network-scripts/ifup | |
parent | 0adee81ab33b5fc10a2e8ec893a7188d66bea6ef (diff) | |
download | initscripts-d137d6097a43687f98c642f172c48b94652ba067.tar initscripts-d137d6097a43687f98c642f172c48b94652ba067.tar.gz initscripts-d137d6097a43687f98c642f172c48b94652ba067.tar.bz2 initscripts-d137d6097a43687f98c642f172c48b94652ba067.tar.xz initscripts-d137d6097a43687f98c642f172c48b94652ba067.zip |
Add optional 'dev' keyword
Fix the problem when the device name could be interpreted as an iproute2 keyword.
For example, for a bridge slave named "a" the iproute2 would treat
the name as a prefix of keyword "address" and the network-scripts
would fail to set the bridge master.
Resolves: rhbz #1859785
(cherry picked from commit 100ed46b483b50059b3be796bafaf7b8f2b99220)
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 69b0bd24..8d565800 100755 --- a/network-scripts/ifup +++ b/network-scripts/ifup @@ -140,7 +140,7 @@ if [ "${VLAN}" = "yes" ] && [ "$ISALIAS" = "no" ] && [ -n "$DEVICE" ]; then exit 1 } - [ -n "${VLAN_EGRESS_PRIORITY_MAP}" ] && ip link set ${DEVICE} type vlan egress ${VLAN_EGRESS_PRIORITY_MAP} + [ -n "${VLAN_EGRESS_PRIORITY_MAP}" ] && ip link set dev ${DEVICE} type vlan egress ${VLAN_EGRESS_PRIORITY_MAP} fi fi |