Merge pull request #21 from eyakubovich/no-path-rewrite

No more path rewriting
This commit is contained in:
Eugene Yakubovich 2015-06-12 16:29:58 -07:00
commit d4d3f914e7
28 changed files with 30 additions and 30 deletions

View File

@ -6,7 +6,7 @@ import (
"net"
"time"
"github.com/appc/cni/Godeps/_workspace/src/github.com/d2g/dhcp4"
"github.com/d2g/dhcp4"
)
const (

View File

@ -6,7 +6,7 @@ import (
"net"
"time"
"github.com/appc/cni/Godeps/_workspace/src/golang.org/x/sys/unix"
"golang.org/x/sys/unix"
)
const (

View File

@ -6,7 +6,7 @@ import (
"strings"
"syscall"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink/nl"
"github.com/vishvananda/netlink/nl"
)
// AddrAdd will add an IP address to a link device.

View File

@ -7,7 +7,7 @@ import (
"net"
"syscall"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink/nl"
"github.com/vishvananda/netlink/nl"
)
var native = nl.NativeEndian()

View File

@ -5,7 +5,7 @@ import (
"syscall"
"unsafe"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink/nl"
"github.com/vishvananda/netlink/nl"
)
const (

View File

@ -11,7 +11,7 @@ package netlink
import (
"net"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink/nl"
"github.com/vishvananda/netlink/nl"
)
const (

View File

@ -4,7 +4,7 @@ import (
"fmt"
"syscall"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink/nl"
"github.com/vishvananda/netlink/nl"
)
func LinkGetProtinfo(link Link) (Protinfo, error) {

View File

@ -5,7 +5,7 @@ import (
"net"
"syscall"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink/nl"
"github.com/vishvananda/netlink/nl"
)
// RtAttr is shared so it is in netlink_linux.go

View File

@ -3,7 +3,7 @@ package netlink
import (
"syscall"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink/nl"
"github.com/vishvananda/netlink/nl"
)
func selFromPolicy(sel *nl.XfrmSelector, policy *XfrmPolicy) {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"syscall"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink/nl"
"github.com/vishvananda/netlink/nl"
)
func writeStateAlgo(a *XfrmStateAlgo) []byte {

View File

@ -13,7 +13,7 @@ import (
"syscall"
"testing"
"github.com/appc/cni/Godeps/_workspace/src/golang.org/x/sys/unix"
"golang.org/x/sys/unix"
)
// TestSCMCredentials tests the sending and receiving of credentials

View File

@ -9,7 +9,7 @@ package unix_test
import (
"testing"
"github.com/appc/cni/Godeps/_workspace/src/golang.org/x/sys/unix"
"golang.org/x/sys/unix"
)
func TestMmap(t *testing.T) {

View File

@ -9,7 +9,7 @@ package unix_test
import (
"testing"
"github.com/appc/cni/Godeps/_workspace/src/golang.org/x/sys/unix"
"golang.org/x/sys/unix"
)
const MNT_WAIT = 1

View File

@ -9,7 +9,7 @@ package unix_test
import (
"testing"
"github.com/appc/cni/Godeps/_workspace/src/golang.org/x/sys/unix"
"golang.org/x/sys/unix"
)
func testSetGetenv(t *testing.T, key, value string) {

View File

@ -18,7 +18,7 @@ import (
"testing"
"time"
"github.com/appc/cni/Godeps/_workspace/src/golang.org/x/sys/unix"
"golang.org/x/sys/unix"
)
// Tests that below functions, structures and constants are consistent

2
build
View File

@ -9,7 +9,7 @@ if [ ! -h gopath/src/${REPO_PATH} ]; then
fi
export GOBIN=${PWD}/bin
export GOPATH=${PWD}/gopath
export GOPATH=${PWD}/gopath:$(pwd)/Godeps/_workspace
echo "Building plugins"

View File

@ -18,7 +18,7 @@ import (
"fmt"
"net"
"github.com/appc/cni/Godeps/_workspace/src/github.com/coreos/go-iptables/iptables"
"github.com/coreos/go-iptables/iptables"
)
// SetupIPMasq installs iptables rules to masquerade traffic

View File

@ -20,7 +20,7 @@ import (
"net"
"os"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/vishvananda/netlink"
)
func makeVethPair(name, peer string, mtu int) (netlink.Link, error) {

View File

@ -17,7 +17,7 @@ package ip
import (
"net"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/vishvananda/netlink"
)
// AddDefaultRoute sets the default route on the given gateway.

View File

@ -23,8 +23,8 @@ import (
"path/filepath"
"strings"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/appc/cni/pkg/ip"
"github.com/vishvananda/netlink"
)
// Find returns the full path of the plugin by searching in CNI_PATH

View File

@ -27,9 +27,9 @@ import (
"runtime"
"sync"
"github.com/appc/cni/Godeps/_workspace/src/github.com/coreos/go-systemd/activation"
"github.com/appc/cni/pkg/plugin"
"github.com/appc/cni/pkg/skel"
"github.com/coreos/go-systemd/activation"
)
const listenFdsStart = 3

View File

@ -23,9 +23,9 @@ import (
"sync"
"time"
"github.com/appc/cni/Godeps/_workspace/src/github.com/d2g/dhcp4"
"github.com/appc/cni/Godeps/_workspace/src/github.com/d2g/dhcp4client"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/d2g/dhcp4"
"github.com/d2g/dhcp4client"
"github.com/vishvananda/netlink"
"github.com/appc/cni/pkg/ns"
"github.com/appc/cni/pkg/plugin"

View File

@ -20,8 +20,8 @@ import (
"net"
"time"
"github.com/appc/cni/Godeps/_workspace/src/github.com/d2g/dhcp4"
"github.com/appc/cni/pkg/plugin"
"github.com/d2g/dhcp4"
)
func parseRouter(opts dhcp4.Options) net.IP {

View File

@ -18,8 +18,8 @@ import (
"net"
"testing"
"github.com/appc/cni/Godeps/_workspace/src/github.com/d2g/dhcp4"
"github.com/appc/cni/pkg/plugin"
"github.com/d2g/dhcp4"
)
func validateRoutes(t *testing.T, routes []plugin.Route) {

View File

@ -23,11 +23,11 @@ import (
"runtime"
"syscall"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/appc/cni/pkg/ip"
"github.com/appc/cni/pkg/ns"
"github.com/appc/cni/pkg/plugin"
"github.com/appc/cni/pkg/skel"
"github.com/vishvananda/netlink"
)
const defaultBrName = "cni0"

View File

@ -21,11 +21,11 @@ import (
"os"
"runtime"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/appc/cni/pkg/ip"
"github.com/appc/cni/pkg/ns"
"github.com/appc/cni/pkg/plugin"
"github.com/appc/cni/pkg/skel"
"github.com/vishvananda/netlink"
)
type NetConf struct {

View File

@ -21,11 +21,11 @@ import (
"os"
"runtime"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/appc/cni/pkg/ip"
"github.com/appc/cni/pkg/ns"
"github.com/appc/cni/pkg/plugin"
"github.com/appc/cni/pkg/skel"
"github.com/vishvananda/netlink"
)
type NetConf struct {

View File

@ -23,7 +23,7 @@ import (
"os"
"runtime"
"github.com/appc/cni/Godeps/_workspace/src/github.com/vishvananda/netlink"
"github.com/vishvananda/netlink"
"github.com/appc/cni/pkg/ip"
"github.com/appc/cni/pkg/ns"