fix vlan generation bug

This commit is contained in:
Samuel Lorch 2023-04-23 19:40:31 +02:00
parent 627a1105ee
commit 42c068833c

View file

@ -133,7 +133,6 @@ func GenerateNetworkdConfiguration(conf config.Config) ([]NetworkdConfigFile, er
// Vlans
vlans := []string{}
if inter.Type != network.Vlan {
vlans := []string{}
for vlanName, vlanInter := range conf.Network.Interfaces {
if vlanInter.Type == network.Vlan {
if *vlanInter.VlanParent == name {