Can we use netlink without vendoring the entirety of docker? This has
become a browser-crashing review


On Thu, May 22, 2014 at 5:06 PM, Brandon Philips
<notifications@github.com>wrote:

> In system/networkd.go:
>
> > +	return
> > +}
> > +
> > +func downNetworkInterfaces(interfaces []network.InterfaceGenerator) error {
> > +	sysInterfaceMap := make(map[string]net.Interface)
> > +	if systemInterfaces, err := net.Interfaces(); err == nil {
> > +		for _, iface := range systemInterfaces {
> > +			sysInterfaceMap[iface.Name] = iface
> > +		}
> > +	} else {
> > +		return err
> > +	}
> > +
> > +	for _, iface := range interfaces {
> > +		if systemInterface, ok := sysInterfaceMap[iface.Name()]; ok {
> > +			err := exec.Command("ip", "link", "set", systemInterface.Name, "down").Run()
>
> we can use this: http://godoc.org/github.com/dotcloud/docker/pkg/netlink
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/coreos/coreos-cloudinit/pull/124/files#r12981276>
> .
>