pkg/ip: Ensure that SetupVeth returns correct hostVeth
authorTom Denham <tom@tomdee.co.uk>
Mon, 29 Aug 2016 21:10:36 +0000 (14:10 -0700)
committerTom Denham <tom@tomdee.co.uk>
Wed, 31 Aug 2016 21:17:25 +0000 (14:17 -0700)
commit726c6b45783fefad0a384479eab854bf878ed8b0
tree70b5fd4894691b8fe0f6f3d57fc4664f2b42ffab
parent9d5e6e60e79491207834ae8439e80c943db65a69
pkg/ip: Ensure that SetupVeth returns correct hostVeth

The veth is moved from the container NS to the host NS.
This is handled by the code that sets the link to UP but the wrong
hostVeth is returned to the calling code.
pkg/ip/link.go
pkg/ip/link_test.go