Code Review
/
ovn4nfv-k8s-plugin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
c23ec42
)
Merge "Set vlan interface up"
author
Trinath Somanchi
<trinaths.dev@gmail.com>
Mon, 16 Mar 2020 17:51:01 +0000
(17:51 +0000)
committer
Gerrit Code Review
<gerrit@opnfv.org>
Mon, 16 Mar 2020 17:51:01 +0000
(17:51 +0000)
internal/pkg/ovn/common.go
patch
|
blob
|
history
diff --git
a/internal/pkg/ovn/common.go
b/internal/pkg/ovn/common.go
index
d3e477a
..
a294004
100644
(file)
--- 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
}