mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
fix vlan generation bug
This commit is contained in:
parent
627a1105ee
commit
42c068833c
1 changed files with 0 additions and 1 deletions
|
@ -133,7 +133,6 @@ func GenerateNetworkdConfiguration(conf config.Config) ([]NetworkdConfigFile, er
|
||||||
// Vlans
|
// Vlans
|
||||||
vlans := []string{}
|
vlans := []string{}
|
||||||
if inter.Type != network.Vlan {
|
if inter.Type != network.Vlan {
|
||||||
vlans := []string{}
|
|
||||||
for vlanName, vlanInter := range conf.Network.Interfaces {
|
for vlanName, vlanInter := range conf.Network.Interfaces {
|
||||||
if vlanInter.Type == network.Vlan {
|
if vlanInter.Type == network.Vlan {
|
||||||
if *vlanInter.VlanParent == name {
|
if *vlanInter.VlanParent == name {
|
||||||
|
|
Loading…
Add table
Reference in a new issue