aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2019-12-26 10:45:11 -0800
committerRitu Sood <ritu.sood@intel.com>2019-12-26 10:45:11 -0800
commit169d6af4a5ac9cf99ca007fffe2c780e1891091d (patch)
treef4909c9e22d5e0cbfd73c07b2d32b4e82faf64cb
parent52123c4bdcfad323f8fb57742400be993167ae2d (diff)
Set vlan interface up
Change-Id: I5b9467755b1a996febfa25dbcac14d9786ab58a8 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
-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
}