Browse Source

ifcfg/write-ifcfg.sh: write DEVICE=$netif for VLAN

VLAN interface configuration is not bound by HWADDR but by DEVICE
master
Harald Hoyer 8 years ago
parent
commit
043d8f401b
  1. 2
      modules.d/45ifcfg/write-ifcfg.sh

2
modules.d/45ifcfg/write-ifcfg.sh

@ -210,7 +210,7 @@ for netup in /tmp/net.*.did-setup ; do
if [ -n "$vlan" ] ; then if [ -n "$vlan" ] ; then
{ {
echo "TYPE=Vlan" echo "TYPE=Vlan"
echo "NAME=\"$netif\"" echo "DEVICE=\"$netif\""
echo "VLAN=yes" echo "VLAN=yes"
echo "PHYSDEV=\"$phydevice\"" echo "PHYSDEV=\"$phydevice\""
} >> /tmp/ifcfg/ifcfg-$netif } >> /tmp/ifcfg/ifcfg-$netif

Loading…
Cancel
Save