mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
fix vlan assignment generation
This commit is contained in:
parent
a290d06803
commit
d6c58b7d21
1 changed files with 4 additions and 2 deletions
|
@ -135,10 +135,12 @@ func GenerateNetworkdConfiguration(conf definitions.Config) ([]NetworkdConfigFil
|
||||||
if inter.Type != definitions.Vlan {
|
if inter.Type != definitions.Vlan {
|
||||||
vlans := []string{}
|
vlans := []string{}
|
||||||
for vlanName, vlanInter := range conf.Network.Interfaces {
|
for vlanName, vlanInter := range conf.Network.Interfaces {
|
||||||
if inter.Type == definitions.Vlan && *vlanInter.VlanParent == name {
|
if vlanInter.Type == definitions.Vlan {
|
||||||
|
if *vlanInter.VlanParent == name {
|
||||||
vlans = append(vlans, vlanName)
|
vlans = append(vlans, vlanName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
slog.Info("Vlans on interface", "interface", name, "count", len(vlans))
|
slog.Info("Vlans on interface", "interface", name, "count", len(vlans))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue