Firewall added & some fixes
This commit is contained in:
@@ -72,6 +72,13 @@ func ApplyPending() map[string]error {
|
||||
ClearPendingConfig(name)
|
||||
continue
|
||||
}
|
||||
// For VLAN interfaces ensure the kernel interface exists before ifup.
|
||||
if IsVLAN(name) {
|
||||
if err := EnsureVLANExists(name); err != nil {
|
||||
errs[name] = err
|
||||
continue
|
||||
}
|
||||
}
|
||||
_ = IfDown(name)
|
||||
if cfg := configs[name]; cfg != nil && cfg.Auto {
|
||||
if err := IfUp(name); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user