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" "net"
"time" "time"
"github.com/appc/cni/Godeps/_workspace/src/github.com/d2g/dhcp4" "github.com/d2g/dhcp4"
) )
const ( const (

View File

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

View File

@ -6,7 +6,7 @@ import (
"strings" "strings"
"syscall" "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. // AddrAdd will add an IP address to a link device.

View File

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

View File

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

View File

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

View File

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

View File

@ -5,7 +5,7 @@ import (
"net" "net"
"syscall" "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 // RtAttr is shared so it is in netlink_linux.go

View File

@ -3,7 +3,7 @@ package netlink
import ( import (
"syscall" "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) { func selFromPolicy(sel *nl.XfrmSelector, policy *XfrmPolicy) {

View File

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

View File

@ -13,7 +13,7 @@ import (
"syscall" "syscall"
"testing" "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 // TestSCMCredentials tests the sending and receiving of credentials

View File

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

View File

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

View File

@ -9,7 +9,7 @@ package unix_test
import ( import (
"testing" "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) { func testSetGetenv(t *testing.T, key, value string) {

View File

@ -18,7 +18,7 @@ import (
"testing" "testing"
"time" "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 // 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 fi
export GOBIN=${PWD}/bin export GOBIN=${PWD}/bin
export GOPATH=${PWD}/gopath export GOPATH=${PWD}/gopath:$(pwd)/Godeps/_workspace
echo "Building plugins" echo "Building plugins"

View File

@ -18,7 +18,7 @@ import (
"fmt" "fmt"
"net" "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 // SetupIPMasq installs iptables rules to masquerade traffic

View File

@ -20,7 +20,7 @@ import (
"net" "net"
"os" "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) { func makeVethPair(name, peer string, mtu int) (netlink.Link, error) {

View File

@ -17,7 +17,7 @@ package ip
import ( import (
"net" "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. // AddDefaultRoute sets the default route on the given gateway.

View File

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

View File

@ -27,9 +27,9 @@ import (
"runtime" "runtime"
"sync" "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/plugin"
"github.com/appc/cni/pkg/skel" "github.com/appc/cni/pkg/skel"
"github.com/coreos/go-systemd/activation"
) )
const listenFdsStart = 3 const listenFdsStart = 3

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -23,7 +23,7 @@ import (
"os" "os"
"runtime" "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/ip"
"github.com/appc/cni/pkg/ns" "github.com/appc/cni/pkg/ns"