diff options
author | Trinath Somanchi <trinaths.dev@gmail.com> | 2020-03-16 17:51:01 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2020-03-16 17:51:01 +0000 |
commit | 8a0bdfd6ee9390acae654da6b95bc1ad55d53779 (patch) | |
tree | fce5bcbde5caaf1eb3ecd98a7823fb3f28fb3448 /internal/pkg | |
parent | c23ec42c2c25ecfa16a65e3b108aaec945760eba (diff) | |
parent | 169d6af4a5ac9cf99ca007fffe2c780e1891091d (diff) |
Merge "Set vlan interface up"
Diffstat (limited to 'internal/pkg')
-rw-r--r-- | internal/pkg/ovn/common.go | 5 |
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 } |