mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
add vlan logging
This commit is contained in:
parent
2fbbe0887e
commit
a290d06803
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@ import (
|
|||
"bytes"
|
||||
"fmt"
|
||||
|
||||
"golang.org/x/exp/slog"
|
||||
"nfsense.net/nfsense/internal/definitions"
|
||||
)
|
||||
|
||||
|
@ -139,6 +140,8 @@ func GenerateNetworkdConfiguration(conf definitions.Config) ([]NetworkdConfigFil
|
|||
}
|
||||
}
|
||||
|
||||
slog.Info("Vlans on interface", "interface", name, "count", len(vlans))
|
||||
|
||||
if len(vlans) != 0 {
|
||||
buf := new(bytes.Buffer)
|
||||
err := templates.ExecuteTemplate(buf, "vlan-assignments.network.tmpl", VlanAssignments{
|
||||
|
|
Loading…
Add table
Reference in a new issue