aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--internal/pkg/ovn/common.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/pkg/ovn/common.go b/internal/pkg/ovn/common.go
index d3e477a..a294004 100644
--- a/internal/pkg/ovn/common.go
+++ b/internal/pkg/ovn/common.go
@@ -33,6 +33,11 @@ func CreateVlan(vlanID, interfaceName, logicalInterfaceName string) error {
log.Error(err, "Failed to create Vlan", "stdout", stdout, "stderr", stderr)
return err
}
+ stdout, stderr, err = RunIP("link", "set", "dev", logicalInterfaceName, "up")
+ if err != nil {
+ log.Error(err, "Failed to enable Vlan", "stdout", stdout, "stderr", stderr)
+ return err
+ }
return nil
}