Skip to content

Commit

Permalink
Merge branch 'ipv6' into v1.4.0-rc
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdee committed Aug 29, 2016
2 parents 4341725 + 44581fe commit f23652d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 94 deletions.
100 changes: 7 additions & 93 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package: github.com/projectcalico/calico-cni
import:
- package: github.com/containernetworking/cni
version: SetupVeth
repo: [email protected]:tomdee/cni.git
vcs: git
subpackages:
- pkg/ip
- pkg/ipam
Expand Down
2 changes: 1 addition & 1 deletion utils/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func setupContainerNetworking(netns, ifName string, mtu int, res *types.Result)

_, defNet, _ := net.ParseCIDR("::/0")
if err = ip.AddRoute(defNet, hostIPv6Addr, contVeth); err != nil {
return fmt.Errorf("failed to add route %v", err)
return fmt.Errorf("failed to add default gateway to %v %v", hostIPv6Addr, err)
}

if err = netlink.AddrAdd(contVeth, &netlink.Addr{IPNet: &res.IP6.IP}); err != nil {
Expand Down

0 comments on commit f23652d

Please sign in to comment.