From 42c068833c8b30a48bbbecc40f8f5be5bf10107b Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sun, 23 Apr 2023 19:40:31 +0200 Subject: [PATCH] fix vlan generation bug --- internal/networkd/configuration.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/networkd/configuration.go b/internal/networkd/configuration.go index 88628c1..f4af801 100644 --- a/internal/networkd/configuration.go +++ b/internal/networkd/configuration.go @@ -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 {