Stefan Junker
72337159c1
plugins: don't require CNI_NETNS for DEL command
...
This will allow to free up the IPAM allocations when the caller doesn't
have access to the network namespace anymore, e.g. due to a reboot.
2016-05-27 10:57:39 +02:00
Stefan Junker
7f90f9d559
pkg/skel: allow arg requriements specified by CMD
2016-05-27 10:56:24 +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
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
d6751cea24
pkg/ns: test IsNSFS()
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
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
2de97b7e98
pkg/ns: add tests cases for Close()'d NS
2016-05-24 21:15:51 +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
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
ebf83ffde5
bridge: add e2e testing
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
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
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
74790e55ef
Merge pull request #175 .
2016-05-19 12:08:41 +02:00
Minhan Xia
89ab9299ab
plugins/bridge: add support to set hairpin mode
2016-05-19 12:06:37 +02:00
Dan Williams
f4eb76318e
macvlan: sysctl must be set in macvlan interface's namespace
...
The macvlan is initially created in a separate network namespace
and the sysctl must be set in that namespace too.
2016-05-19 12:06:37 +02:00
Angus Lees
a80bcc0371
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
Angus Lees
979044ad2f
pkg/ns: use correct syscall number on arm
2016-05-19 12:06:37 +02:00
Jonathan Boulle
ec78e7cf1e
MAINTAINERS: add Tom Denham and Gabe Rosenhouse
2016-05-19 12:06:37 +02:00
Stefan Junker
5d67d22caa
plugins/{ptp,bridge}: teardown first
...
This will allow the IPAM allocations to be cleared in case the
interfaces and iptables rules are non-existent.
2016-05-19 12:06:37 +02:00
Stefan Junker
2c482f433c
*: appc/cni -> containernetworking/cni
...
The project has been moved so internally we simply rename everything.
Consumers are recommended to update their vendored version of cni.
2016-05-19 12:06:36 +02:00
Brandon Philips
419711fee3
README: fix badge links
2016-05-19 12:06:36 +02:00
Brandon Philips
04dbf7ce45
README: fix badges
2016-05-19 12:06:36 +02:00
Vipin Jain
61f20da4f2
README: add contiv to cni supported networking
2016-05-19 12:06:36 +02:00
Iago López Galeiras
a993ef5f7f
plugins/bridge: clean masquerading rules
...
In the Add command we set up masquerading rules that didn't have a
corresponding clean-up code in Del.
Add the clean-up code.
2016-05-19 12:06:36 +02:00
Tom Denham
41a5dfac33
Remove reference to policy on accepting PRs
...
There is to policy
2016-05-19 12:06:36 +02:00
Piotr Skamruk
a1dab0aa40
macvlan: set proxy_arp in time of creating interface
...
Resolves CNI part of https://github.com/coreos/rkt/issues/1765
Second part would be adding similar lines into kvm flavored macvlan
support (in time of creating macvtap device).
2016-05-19 12:06:16 +02:00
Piotr Skamruk
4298aa94a5
pkg/utils: add functions to work with sysctl
2016-05-19 12:06:16 +02:00
Stefan Junker
d53ffe1b40
README: clarify what CNI is
...
The word "standard" does not represent what CNI is actually trying to
be.
2016-05-19 12:06:16 +02:00
Gabe Rosenhouse
b5e56b3dab
Document use of goroutine and lockosthread in test helpers
2016-05-19 12:06:16 +02:00