d228f980e1
Merge pull request #103 from alice02/fix/skip_settleaddress
...
pkg/ipam: Skip ip.SettleAddresses if only IPv4 is used
2018-01-22 12:07:41 +01:00
59f9976017
pkg/ip: don't write to /proc/sys if ipforward enabled
...
This enables setup in a container env like systemd nspawn
where /proc/sys is mouted as read only.
Signed-off-by: Shengjing Zhu <i@zhsj.me >
2018-01-18 01:52:49 +08:00
97664d8a6a
pkg/ipam: Skip ip.SettleAddresses if only IPv4 is used
...
This change improves the performance of the ipam.ConfigureIface.
Some plugins are slow because of the ip.SettleAddress in ipam.ConfigureIface.
It seems to be only needed for IPv6, so should be skipped if only IPv4 is used.
2017-12-26 16:48:57 +09:00
99f6be0319
Enable Windows CI (Appveyor)
...
- start list of linux_only plugins; ignore them when testing on Windows
- Isolate linux-only code by filename suffix
- Remove stub (NotImplemented) functions
- other misc. fixes for Windows compatibility
2017-11-10 08:09:29 -08:00
449700f7ea
pkg/ip: don't return error from DelLinkByNameAddr() if no addresses exist
...
For some reason no addresses on the interface returned an error, despite
having a testcase that explicitly tested for success.
2017-11-07 16:07:04 -06:00
d8f2fd7a3c
testing: move echosvr into testutils
2017-09-06 19:10:48 -07:00
7a62515407
pkg/ip: Fix ipmasq teardown on v6-only interfaces
2017-09-06 20:02:41 +02:00
a690f775ae
Merge pull request #25 from squeed/ptp-v6
...
ptp: add ipv6 support
2017-07-05 17:30:23 +02:00
3daee3214d
ptp: add ipv6 support
...
* Wait for addresses to leave tentative state before setting routes
* Enable forwarding correctly
* Set up masquerading according to the active protocol
2017-06-30 12:06:57 +02:00
0da6780449
pkg,plugins: update for Result struct Interface index changes
...
It's a pointer now, so we need to use the helper function to set
the field and also test for nil before accessing it.
2017-06-29 13:40:36 -05:00
e2558a03bb
Merge pull request #12 from squeed/host-local-multi
...
ipam/host-local: support multiple IP ranges
2017-06-14 21:55:30 -05:00
45650feb32
Merge pull request #14 from rosenhouse/more-ns-warning-redux
...
pkg/ns readme: expand on danger of ns switching in long-lived programs
2017-06-14 16:18:26 +01:00
2e9e87732f
ipam/host-local: support multiple IP ranges
...
This change allows the host-local allocator to allocate multiple IPs.
This is intended to enable dual-stack, but is not limited to only two
subnets or separate address families.
2017-06-12 21:14:44 +02:00
9c7aeff02c
pkg/ns: use unix.Setns() instead of open coding it
...
Use unix.Setns() instead of manually re-implementing it using
unix.Syscall().
2017-06-08 14:48:58 +02:00
6f45630cc1
pkg/ns readme: expand on danger of ns switching in long-lived programs
...
- redux of https://github.com/containernetworking/cni/pull/331 since the
plugin/lib split
- added link to new blog post about this from Weave folks (thanks!)
2017-06-06 19:05:00 -07:00
3c436520be
move most of cni/pkg to plugins/pkg: delete code staying in cni/pkg
...
This moves the following packages to this repository:
* ip
* ipam
* ns
* testutils
* utils
2017-05-23 16:12:49 +02:00
8b43e90949
Add 'pkg/' from commit 'a11be4d7596203874b742b6597caf255204c56c3'
...
git-subtree-dir: pkg
git-subtree-mainline: dcf7368eea
git-subtree-split: a11be4d759
2017-05-19 19:43:02 +02:00