aboutsummaryrefslogtreecommitdiffstats
path: root/internal/pkg
diff options
context:
space:
mode:
authorTrinath Somanchi <trinaths.dev@gmail.com>2020-03-16 17:51:01 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-03-16 17:51:01 +0000
commit8a0bdfd6ee9390acae654da6b95bc1ad55d53779 (patch)
treefce5bcbde5caaf1eb3ecd98a7823fb3f28fb3448 /internal/pkg
parentc23ec42c2c25ecfa16a65e3b108aaec945760eba (diff)
parent169d6af4a5ac9cf99ca007fffe2c780e1891091d (diff)
Merge "Set vlan interface up"
Diffstat (limited to 'internal/pkg')
-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
}