Jie Yu
d6674e0f49
README: add Mesos as CNI users
2016-05-26 09:42:10 -07:00
Stefan Junker
3b5d7a3bb0
travis: use go1.5.4
2016-05-26 15:33:58 +02:00
Stefan Junker
572fcc7076
travis: cleanup and bump go versions
...
* cleanup structure
* explicitly use go-{1.5.3,1.6.2}
2016-05-26 14:43:18 +02:00
Stefan Junker
6f63d9d707
Merge pull request #227 from steveeJ/ns-verify
...
pkg/ns: consider PROCFS during NS verification
v0.3.0-rc2
2016-05-26 13:22:29 +02:00
Stefan Junker
2d47b0396d
pkg/ns: consider PROCFS during NS verification
...
This is an attempt to bring compatibility with Kernel <3.19, where NSFS
where PROCFS was used for network namespaces.
2016-05-26 12:42:50 +02:00
Stefan Junker
3bab8a2805
pkg/ns: consider PROCFS during NS verification
...
This is an attempt to bring compatibility with Kernel <3.19, where NSFS
where PROCFS was used for network namespaces.
2016-05-26 12:42:50 +02:00
Stefan Junker
6fb30a6700
Merge pull request #222 from steveeJ/ns-check-path
...
pkg/ns: verify netns when initialized with GetNS
v0.3.0-rc1
2016-05-25 08:54:10 +02:00
Stefan Junker
ea073fc4c7
pkg/ns: test IsNSFS()
2016-05-24 22:30:49 +02:00
Stefan Junker
d6751cea24
pkg/ns: test IsNSFS()
2016-05-24 22:30:49 +02:00
Stefan Junker
f64cfb84f8
pkg/ns: test case for rejecting a non-ns nspath
2016-05-24 22:30:49 +02:00
Stefan Junker
c43ccc703a
pkg/ns: test case for rejecting a non-ns nspath
2016-05-24 22:30:49 +02:00
Stefan Junker
39eace3c38
pkg/ns: verify netns when initialized with GetNS
2016-05-24 22:30:49 +02:00
Stefan Junker
76ea259ff9
pkg/ns: verify netns when initialized with GetNS
2016-05-24 22:30:49 +02:00
Stefan Junker
c29cd52628
Merge pull request #223 from steveeJ/ns-respect-close
...
pkg/ns: don't allow operations after Close()
2016-05-24 22:16:09 +02:00
Stefan Junker
a8d1029294
pkg/ns: add tests cases for Close()'d NS
2016-05-24 21:15:51 +02:00
Stefan Junker
2de97b7e98
pkg/ns: add tests cases for Close()'d NS
2016-05-24 21:15:51 +02:00
Stefan Junker
40440ec887
pkg/ns: don't allow operations after Close()
2016-05-24 20:52:00 +02:00
Stefan Junker
b23895a7c7
pkg/ns: don't allow operations after Close()
2016-05-24 20:52:00 +02:00
Stefan Junker
984ef8117a
Merge pull request #217 from steveeJ/fix-go-tip
...
build: don't be verbose / test: fix bash variable escaping in sudo command
v0.3.0-rc0
2016-05-21 01:55:57 +02:00
Stefan Junker
54c0cd2cad
build: remove -x bash flag
2016-05-21 01:48:26 +02:00
Stefan Junker
232d7c095d
test: fix bash variable escaping in sudo command
2016-05-21 01:48:26 +02:00
Stefan Junker
20fa3d35e8
Merge pull request #50 from steveeJ/gwfix
...
bridge: add isDefaultGateway field
2016-05-21 01:34:21 +02:00
Stefan Junker
8afda5faed
tests/bridge: ensure isDefaultGateway works
2016-05-21 01:07:05 +02:00
Stefan Junker
8814631f80
bridge: add isDefaultGateway field
...
When isDefaultGateway is true it automatically sets isGateway to true.
The default route will be added via the (bridge's) gateway IP.
If a default gateway has been configured via IPAM in the same
configuration file, the plugin will error out.
2016-05-21 00:38:42 +02:00
Stefan Junker
534768fcd4
bridge: add isDefaultGateway field
...
When isDefaultGateway is true it automatically sets isGateway to true.
The default route will be added via the (bridge's) gateway IP.
If a default gateway has been configured via IPAM in the same
configuration file, the plugin will error out.
2016-05-21 00:38:42 +02:00
Stefan Junker
d30040f9f7
Merge pull request #211 from dcbw/e2e-testing
...
Fix namespace switch issues and add ipvlan, macvlan, and bridge e2e testing
2016-05-21 00:17:45 +02:00
Dan Williams
fce81fbf78
testutils: add e2e testing helper code
2016-05-20 17:10:25 -05:00
Dan Williams
ebf83ffde5
bridge: add e2e testing
2016-05-20 17:10:25 -05:00
Dan Williams
f2922c5c1f
ns: add interface, use it, and fix thread-related namespace switch issues
...
Add a namespace object interface for somewhat cleaner code when
creating and switching between network namespaces. All created
namespaces are now mounted in /var/run/netns to ensure they
have persistent inodes and paths that can be passed around
between plugin components without relying on the current namespace
being correct.
Also remove the thread-locking arguments from the ns package
per https://github.com/appc/cni/issues/183 by doing all the namespace
changes in a separate goroutine that locks/unlocks itself, instead of
the caller having to track OS thread locking.
2016-05-20 17:10:25 -05:00
Dan Williams
552dc43168
macvlan: add e2e testing
2016-05-20 17:10:25 -05:00
Dan Williams
185e33ebe9
ipvlan: add e2e testing
2016-05-20 17:10:25 -05:00
Dan Williams
31da322f6e
testutils: add e2e testing helper code
2016-05-20 17:10:25 -05:00
Dan Williams
c0d34c692f
ns: add interface, use it, and fix thread-related namespace switch issues
...
Add a namespace object interface for somewhat cleaner code when
creating and switching between network namespaces. All created
namespaces are now mounted in /var/run/netns to ensure they
have persistent inodes and paths that can be passed around
between plugin components without relying on the current namespace
being correct.
Also remove the thread-locking arguments from the ns package
per https://github.com/appc/cni/issues/183 by doing all the namespace
changes in a separate goroutine that locks/unlocks itself, instead of
the caller having to track OS thread locking.
2016-05-20 17:10:25 -05:00
Stefan Junker
3e1c3c60da
Merge pull request #199 from dcbw/fix-bridge-tx-queue-length
...
bridge: leave TX queue length as kernel default, not 0
2016-05-19 23:05:08 +02:00
Stefan Junker
c019ed25d2
Merge pull request #199 from dcbw/fix-bridge-tx-queue-length
...
bridge: leave TX queue length as kernel default, not 0
2016-05-19 23:05:08 +02:00
Stefan Junker
d29b895932
Merge pull request #212 from squaremo/more-contrib
...
docs: Mention license headers and doc contributions
2016-05-19 18:38:57 +02:00
Stefan Junker
398710b3c4
Merge pull request #214 from steveeJ/merge-v0.2
...
Merge v0.2
2016-05-19 15:45:07 +02:00
Stefan Junker
5fa06a39f0
release script: don't run the tests
...
For two reasons:
1. They're not functional within rkt
2. They rebuild the binaries dynamically
2016-05-19 15:05:29 +02:00
Stefan Junker
c72dea5a20
build/release: link all release binaries statically
2016-05-19 15:05:29 +02:00
Stefan Junker
4aaffc2069
scripts: build static releases and create an ACI
...
* use SHA1 instead of MD5
2016-05-19 15:05:29 +02:00
Stefan Junker
e145c60337
scripts: add "release with rkt"
...
This script uses rkt and a fedora image to build release tarballs.
2016-05-19 15:05:29 +02:00
Michael Bridgen
bcc189e1e6
docs: Mention license headers and doc contributions
...
Closes #174 .
2016-05-19 13:42:36 +01:00
Michael Bridgen
3738692372
Merge pull request #200 from squaremo/simplify-readme
...
Simplify README preamble
2016-05-19 13:21:40 +01:00
Michael Bridgen
991176a64a
Merge pull request #200 from squaremo/simplify-readme
...
Simplify README preamble
2016-05-19 13:21:40 +01:00
Michael Bridgen
8db1f0d503
README: Simplify preamble
2016-05-19 12:52:09 +01:00
Stefan Junker
0bd4bafcda
Merge pull request #175 .
2016-05-19 12:08:41 +02:00
Stefan Junker
74790e55ef
Merge pull request #175 .
2016-05-19 12:08:41 +02:00
Angus Lees
734bf1ba5b
pkg/ns: evaluate syscall number at compile-time
...
Previously this code used a run-time map lookup keyed by
runtime.GOOS/GOARCH. This version uses conditional compilation to make
this choice at compile time, giving immediate feedback for unsupported
platforms.
2016-05-19 12:06:37 +02:00
Minhan Xia
5de15979c6
plugins/bridge: add support to set hairpin mode
2016-05-19 12:06:37 +02:00
Minhan Xia
89ab9299ab
plugins/bridge: add support to set hairpin mode
2016-05-19 12:06:37 +02:00