From 169d6af4a5ac9cf99ca007fffe2c780e1891091d Mon Sep 17 00:00:00 2001 From: Ritu Sood Date: Thu, 26 Dec 2019 10:45:11 -0800 Subject: Set vlan interface up Change-Id: I5b9467755b1a996febfa25dbcac14d9786ab58a8 Signed-off-by: Ritu Sood --- internal/pkg/ovn/common.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal') 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 } -- cgit 1.2.3-korg