ip: place veth peer in host namspace directly
Instead of moving the host side of the veth peer into the host network namespace later, just create it in the host namespace directly. Signed-off-by: Dan Williams <dcbw@redhat.com>
This commit is contained in:
@ -188,8 +188,8 @@ var _ = Describe("Link", func() {
|
||||
_ = containerNetNS.Do(func(ns.NetNS) error {
|
||||
defer GinkgoRecover()
|
||||
_, _, err := ip.SetupVeth(containerVethName, mtu, "", hostNetNS)
|
||||
Expect(err.Error()).To(HavePrefix("failed to move veth to host netns: "))
|
||||
|
||||
Expect(err.Error()).To(HavePrefix("container veth name provided"))
|
||||
Expect(err.Error()).To(HaveSuffix("already exists"))
|
||||
return nil
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user