aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2017-03-29 15:13:44 +0200
committerDee'Kej <deekej@linuxmail.org>2017-05-03 11:53:09 +0200
commit457676588beecd9a32c056a812e59082f3b0989b (patch)
treebcaaaee48e5962958083f675990aeb25c1919e90
parent53330c9b3d38365218a18be14cb2165ebeed9110 (diff)
downloadinitscripts-457676588beecd9a32c056a812e59082f3b0989b.tar
initscripts-457676588beecd9a32c056a812e59082f3b0989b.tar.gz
initscripts-457676588beecd9a32c056a812e59082f3b0989b.tar.bz2
initscripts-457676588beecd9a32c056a812e59082f3b0989b.tar.xz
initscripts-457676588beecd9a32c056a812e59082f3b0989b.zip
ifup: add support for VLAN_EGRESS_PRIORITY_MAP
-rwxr-xr-xsysconfig/network-scripts/ifup2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index e06fafb9..d25db5af 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -133,6 +133,8 @@ if [ "${VLAN}" = "yes" ] && [ "$ISALIAS" = "no" ] && [ -n "$DEVICE" ]; then
net_log $"ERROR: could not add vlan ${VID} as ${DEVICE} on dev ${PHYSDEV}"
exit 1
}
+
+ [ -n "${VLAN_EGRESS_PRIORITY_MAP}" ] && ip link set ${DEVICE} type vlan egress ${VLAN_EGRESS_PRIORITY_MAP}
fi
fi