mirror of
https://github.com/rancher/plugins.git
synced 2025-09-26 00:32:49 +00:00
plugins/ptp: allow host veth to be UP
This commit is contained in:
@@ -128,6 +128,10 @@ func setupHostVeth(vethName string, ipConf *types.IPConfig) error {
|
||||
return fmt.Errorf("failed to lookup %q: %v", vethName, err)
|
||||
}
|
||||
|
||||
if err = netlink.LinkSetUp(veth); err != nil {
|
||||
return fmt.Errorf("failed to set %q up: %v", vethName, err)
|
||||
}
|
||||
|
||||
// TODO(eyakubovich): IPv6
|
||||
ipn := &net.IPNet{
|
||||
IP: ipConf.Gateway,
|
||||
|
Reference in New Issue
Block a user