Dan Williams
a95d48bb01
Merge pull request #215 from nagiesek/addHcnSupport
...
Windows: Adds support for Host Compute Calls for Win-Bridge
2019-02-27 14:11:45 -06:00
Nathan Gieseker
57b42a7b99
Windows: Adds HCS Calls and Bug Fixes
...
Move the windows plugin to use the Host Compute (v2) APIs, as well
as clean-up the code. Allows win-bridge to use either the old API or Host Compute (v2) api
depending on a conf parameter. Fixes a leaked endpoint issue on windows for the v1 flow, and
removes the hns/pkg from the linux test run.
2019-02-27 08:49:34 -08:00
Dan Williams
9226c9642d
Merge pull request #254 from daschott/master
...
Added CONTRIBUTORS.md for Windows and CNI plugins OWNERS.md
2019-01-30 10:06:50 -06:00
Tomofumi Hayashi
d29d56bc4d
Fix host-device README.md
...
host-device's README.md missing 'type' field, so this change
just adds 'type' in config example.
2019-01-30 01:51:57 +09:00
David Schott
a5378f2ccf
added CONTRIBUTORS.md for Windows and CNI plugins OWNERS.md
2019-01-25 13:25:56 -08:00
Sebastian Sch
bf47e9aa1b
Allow L2 connection for the bridge cni plugin.
2018-11-21 17:57:10 +02:00
Dan Williams
5fc8209482
Merge pull request #218 from hwchiu/fix-readme
...
fix the typo of macvlan and also modify documents to meet the current plugins.
2018-11-07 09:30:29 -06:00
hwchiu
d3284f7c5e
Support the IPAM for host-device plugin
...
- Change variable name to camel style to fix golint warning
- Execute the IPAM to assign the IP address if it's inside in the config
- Test the IPAM module with static plugin
2018-11-01 01:12:47 +00:00
hwchiu
f006155b66
Add the missing documents for some existing plugins
2018-10-18 02:20:52 +00:00
hwchiu
e3ec4a74d0
fix the typo, we use the passthru in the macvlan.go
2018-10-17 17:15:43 +00:00
Lantao Liu
2955d63c95
Handle empty netns in DEL for loopback
and host-device
.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-10-10 10:49:06 -07:00
Dan Williams
8a579a7fbc
Merge pull request #204 from mrostecki/always-check-err
...
Add missing error checks
2018-09-24 20:52:38 -05:00
MaiWJ
b56ca2fe45
Windows Support
...
Patch for https://github.com/containernetworking/plugins/pull/85
+ Windows cni plugins are added
(*) win-bridge (hostgw)
(*) win-overlay (vxlan)
+ Windows netconf unit test
+ Fix appveyor config to run the test
+ Build release support for windows plugins
Address comments
From:
- https://github.com/containernetworking/plugins/pull/85
- 0049c64e3f
2018-09-21 00:34:07 +08:00
Michal Rostecki
8c61a2c2f3
plugins/main: Add missing error checks
...
Signed-off-by: Michal Rostecki <mrostecki@suse.de>
2018-09-20 11:06:28 +02:00
Mauricio Vasquez B
316489903b
bridge: add test case for release IP on error
...
Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@polito.it>
2018-07-27 07:57:12 -05:00
Mauricio Vasquez B
3a7ee332be
bridge: release IP in case of error
...
If there is an error after an IP has been allocated it is necesary
to release it.
Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@polito.it>
2018-07-27 07:57:04 -05:00
Dan Williams
4b296ba330
bridge: add random datadir to all testcases
2018-07-26 21:09:30 -05:00
Casey Callendrello
68b4efb405
plugins/* stub-out GET functions so plugins build with v0.7
2018-06-15 15:28:53 +02:00
Dan Williams
1d973f59d2
Merge pull request #147 from databus23/host-device-fix
...
host-device: Ensure device is down before rename
2018-05-16 10:54:47 -05:00
Dan Williams
731298003c
plugins/testutils: pass CNI_CONTAINERID to plugins in testcases
...
Recent CNI specification changes require the container ID on ADD/DEL,
which the testcases were not providing. Fix that up so things work
when this repo gets CNI revendored.
2018-04-26 11:24:30 -05:00
Fabian Ruff
eb410208cb
host-device: Ensure device is down before rename
...
If the device is in state up trying to set the name fails with "device or resource busy"
2018-04-25 20:39:23 +02:00
Dan Williams
1df359a210
Merge pull request #144 from squeed/build-fixes
...
build: some small improvements; bump to go1.10
2018-04-25 10:41:32 -05:00
Casey Callendrello
aade7b93ee
build: some small improvements; bump to go1.10
...
- bump to go 1.10
- Add a linker tag with the build version
- Remove fastbuild, go builds are cached now
- Use better ginkgo suite names
2018-04-12 16:59:51 +02:00
Dan Williams
bb1e8d10a7
Merge pull request #143 from containernetworking/v0.7
...
Merge v0.7.1 fix into master
2018-04-12 09:21:42 -05:00
Dan Williams
e4f13535ab
Merge pull request #131 from squeed/no-delete-ns
...
pkg/ns: remove namespace creation (and move to testutils)
2018-04-11 13:32:32 -05:00
Casey Callendrello
26dafaa097
plugins/ptp: test for valid data in Interfaces field
2018-04-11 15:19:20 +02:00
Casey Callendrello
13e6a4b2ba
plugins/bridge: Make stricter assertions about the return data
2018-04-11 15:10:39 +02:00
Casey Callendrello
a0eac8d7d9
pkg/ns: remove namespace creation (and move to testutils)
...
Namespace creation had an unergonomic interface and isn't used, except
for testing code. Remove it; downstream users should really be creating
their own namespaces
2018-04-03 18:56:25 +02:00
Dan Williams
e590fca5ae
Merge pull request #130 from jingax10/fix_typo_branch
...
Fix a typo in PTP plugin comment, i.e., s/IFF_POINTOPONT/IFF_POINTTOPOINT.
2018-03-21 08:28:55 -05:00
Jing Ai
00fbba085e
Fix a typo s/IFF_POINTOPONT/IFF_POINTTOPOINT.
2018-03-15 22:47:54 -07:00
Gabe Rosenhouse
69cc860821
bridge test: fix go vet error
2018-02-17 18:51:41 -08:00
Paul Fisher
3468364f7e
Merge branch 'master' into ipvlan-master-intf-ipam
2018-01-25 15:06:06 -08:00
Bryan Boreham
2a0736c748
Merge pull request #97 from oilbeater/fix/link-leak
...
delete link and ip if err when cmdAdd to avoid resource leak.
2018-01-24 16:38:44 +00:00
Casey Callendrello
c42470bc79
Merge pull request #110 from dcbw/host-device-honor-ifname
...
host-device: respect CNI_IFNAME/args.IfName
2018-01-19 19:05:29 +01:00
Dan Williams
ffc591e242
host-device: respect CNI_IFNAME/args.IfName
...
On ADD save the host device's name into its IFLA_ALIAS property and
rename the device to the requested CNI_IFNAME inside the container
to conform to the CNI specification. On DEL rename the device to
the original name and move it back into the host namespace.
2018-01-17 14:30:22 -06:00
Jing Ai
8ebea58550
Update IPVLAN modes by adding l3s in README.
2018-01-12 12:06:48 -08:00
Paul Fisher
5c7e7c0913
ipvlan: support chaining for master interface and IP configuration
...
For IP allocation schemes that cannot be interface agnostic, the
ipvlan plugin can be chained with an earlier plugin that handles this
logic. If "master" is omitted from the ipvlan configuration, then the
previous Result must contain a single interface name for the ipvlan
plugin to enslave. If "ipam" is omitted, then the previous Result is
used to configure the ipvlan interface.
2017-12-23 10:59:48 -08:00
oilbeater
1f02326d56
delete link and ip if err when cmdAdd to avoid resource leak.
2017-11-27 15:26:07 +08:00
Casey Callendrello
5e830efb20
plugins/main/host-local: generate result, fix DEL, other cleanups
...
This plugin needed some cleaning up: it didn't generate output, and
didn't test DEL. Add those things, plus a README.
2017-11-15 16:00:32 +01:00
Casey Callendrello
d07d2aaf71
plugins/host_device: move to "main" folder
2017-11-13 18:50:20 +01:00
Paul Fisher
4779f1d2bf
ipvlan: support enslaving an interface returned by ipam
...
For IP allocation schemes that cannot be interface agnostic, master can be set
to "ipam". In this configuration, the IPAM plugin is required to return a single
interface name for the ipvlan plugin to enslave.
2017-11-01 10:14:04 -07:00
Casey Callendrello
7a62515407
pkg/ip: Fix ipmasq teardown on v6-only interfaces
2017-09-06 20:02:41 +02:00
Casey Callendrello
a124fb36e6
bridge: various fixes
...
* Don't set the MAC, send gratuitous arp instead
* Set the bridge's MAC to itself
* Only disable DAD when necessary
2017-08-28 18:12:49 +02:00
Casey Callendrello
27d027a6d3
ipam/host-local: support sets of disjoint ranges
...
In real-world address allocations, disjoint address ranges are common.
Therefore, the host-local allocator should support them.
This change still allows for multiple IPs in a single configuration, but
also allows for a "set of subnets."
Fixes: #45
2017-08-09 19:02:08 +02:00
Tom Denham
a714098daf
Merge pull request #35 from dnardo/bridge-plugin
...
bridge: add support for promiscuous mode
2017-07-12 08:30:00 -07:00
Dan Williams
0b9dbef185
ptp: fix testcase for Interface int-pointer changes
2017-07-05 16:26:19 -05:00
Daniel Nardo
9d08b04a3a
bridge: add support for promiscuous mode
2017-07-05 09:51:10 -07:00
Casey Callendrello
a690f775ae
Merge pull request #25 from squeed/ptp-v6
...
ptp: add ipv6 support
2017-07-05 17:30:23 +02:00
Casey Callendrello
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
Dan Williams
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