Dan Williams
ae0b03787f
windows,flannel: cmdGet -> cmdCheck and fix flannel Check return
2019-05-01 10:48:14 -05:00
Casey Callendrello
dbc86e4db2
Merge pull request #298 from s1061123/dev/macvlan-default-master
...
macvlan: make master config as optional
2019-04-30 15:47:51 +02:00
Bruce Ma
7efec9ea46
change source of ipmasq rule from ipn to ip
2019-04-25 15:59:02 +08:00
Zenghui Shi
79b1c402c4
host-device: add deviceID property
...
Fixes #253
2019-04-25 12:17:40 +08:00
Dan Williams
827a4bd843
Merge pull request #301 from mars1024/bugfix/ipam_revert
...
fix bug on ip revert if cmdAdd fails on macvlan and host-device
2019-04-24 10:36:40 -05:00
Bruce Ma
214bcb8c8b
fix bug on ipam revert if cmdAdd fails on macvlan and host-device
2019-04-18 21:16:29 +08:00
nagiesek
635968aaff
Merge branch 'master' into noErrorEndpointNotFound
2019-04-17 23:04:04 -07:00
Tomofumi Hayashi
7924ef76da
Incorporate with reviewer's comments
2019-04-18 00:54:31 +09:00
Nathan Gieseker
688a87a055
Windows: No error for no endpoint found On Del. Ipam clean-up on ADD failure.
...
We used to return error if no endpoint was found during delete. We now treat this as a success. If we fail during an add call, we now make a delete delegate call to the ipam to clean-up.
2019-04-17 08:33:10 -07:00
Tomofumi Hayashi
8c52f50849
macvlan: make master config as optional
...
To ease of config, make master config as optional parameter.
In default case, default route interface will be used for master.
2019-04-17 16:28:27 +09:00
Casey Callendrello
72f2a1ffd4
plugins: correctly output build version, cosmetic cleanups
...
Now that libcni has the ability to print a version message, plumb it
through correctly.
While we're at it,
- fix import paths
- run gofmt
- add some more comments to sample
- add container runtime swappability for release
2019-04-15 16:52:07 +02:00
Sebastian Sch
b69a2dd3d7
Added vlan tag to the bridge cni plugin.
...
With the VLAN filter, the Linux bridge acts more like a real switch, Allow to tag and untag
vlan id's on every interface connected to the bridge.
This PR also creates a veth interface for the bridge vlan interface on L3 configuration.
Related to https://developers.redhat.com/blog/2017/09/14/vlan-filter-support-on-bridge/ post.
Note: This feature was introduced in Linux kernel 3.8 and was added to RHEL in version 7.0.
2019-04-10 21:59:52 +03:00
Dan Williams
18874aac7d
Merge pull request #264 from mccv1r0/add-check
...
Add CHECK support for linux plugins
2019-04-03 12:58:41 -05:00
Michael Cambria
74a2596573
Add check support for: bridge, ipvlan, macvlan, p2p, vlan and host-device main plugins
...
host-local and static ipam plugins
tuning, bandwidth and portmap meta plugins
Utility functions created for common PrevResult checking
Fix windows build
2019-04-03 13:08:07 -04:00
Nathan Gieseker
b71e8db683
Windows: Add runtime DNS and del bug fix
...
This adds the dns capability for supplying a runtime dnsConfig from a CRI. It also includes a bug fix for removing an endpoint when no IPAM is supplied. Adds version dependency of 0.3.0. Mild updates to windows READMEs.
2019-03-12 20:56:11 -07:00
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