Skip to content

Commit

Permalink
ensure provider nic is up
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Aug 16, 2021
1 parent 154f21c commit 78077f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/daemon/ovs.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,10 @@ func configProviderNic(nicName, brName string) (int, error) {
}
}

if err = netlink.LinkSetUp(nic); err != nil {
return 0, fmt.Errorf("failed to set link %s up: %v", nicName, err)
}

return nic.Attrs().MTU, nil
}

Expand Down

0 comments on commit 78077f3

Please sign in to comment.