aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts/ifup
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2020-07-24 13:44:37 +0200
committerGitHub <noreply@github.com>2020-07-24 13:44:37 +0200
commit299efd663b4614f4698cf2bc9b9ba8e72df9387e (patch)
tree06cc3b1df5ce1ab29f0820f104163c0374738bdb /network-scripts/ifup
parent6ca701a23c74b245f35750149a22f7d21805a8e0 (diff)
downloadinitscripts-299efd663b4614f4698cf2bc9b9ba8e72df9387e.tar
initscripts-299efd663b4614f4698cf2bc9b9ba8e72df9387e.tar.gz
initscripts-299efd663b4614f4698cf2bc9b9ba8e72df9387e.tar.bz2
initscripts-299efd663b4614f4698cf2bc9b9ba8e72df9387e.tar.xz
initscripts-299efd663b4614f4698cf2bc9b9ba8e72df9387e.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. Related: rhbz #1859785
Diffstat (limited to 'network-scripts/ifup')
-rwxr-xr-xnetwork-scripts/ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/network-scripts/ifup b/network-scripts/ifup
index 5aac4c9f..2c6d27ca 100755
--- a/network-scripts/ifup
+++ b/network-scripts/ifup
@@ -140,7 +140,7 @@ if is_true "${VLAN}" && is_false "$ISALIAS" && [ -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