Michael Cambria
fd42109a06
When prevResults are not returned to loopback plugin, create results to return based on
...
the lo interface and IP address assigned inside container.
Signed-off-by: Michael Cambria <mcambria@redhat.com>
2019-09-11 11:57:03 -04:00
Casey Callendrello
f81a529ebd
Merge pull request #375 from smarkm/master
...
Fixes #342 , cleanup netns after test suite
2019-08-28 17:55:36 +02:00
Bruce Ma
3d56f7504d
loopback plugin support to pass previous result transpartently
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
2019-08-23 22:56:22 +08:00
Bruce Ma
659a09f34e
loopback support CNI CHECK
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
2019-08-23 20:36:37 +08:00
smarkm
0d0dcfc02f
Cleanup netns after test suit
...
Signed-off-by: smarkm <smark@freecoop.net>
2019-08-22 08:10:35 +08:00
Casey Callendrello
ca82120019
win-bridge, win-overlay: remove extra import
2019-08-14 18:15:23 +02:00
Lantao Liu
ad7c1d189b
Fix a race condition in the bridge plugin.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-08-09 17:08:04 -07:00
Gabe Rosenhouse
ccd683e1a3
Merge pull request #357 from mars1024/bugfix/host-device
...
host-device: revert name setting to make retries idempotent
2019-08-07 08:54:26 -07:00
Nathan Gieseker
df9af9ab41
[Windows] Adds optional loopbackDSR argument to cni config.
...
Adds a bool to the cni config that will add a policy that allows for loopbackDSR on an interface. Updates relevant documentation. Allows L2Tunnel networks to be used for L2Bridge plugin.
2019-07-31 15:45:54 -07:00
Bruce Ma
5e2e365291
host-device: remove useless Expects in testcases
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
2019-07-29 21:09:03 +08:00
Bruce Ma
4b68f56820
host-device: add testcases for imdempotence of CmdDel
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
2019-07-29 20:47:28 +08:00
Bruce Ma
57650a1e5b
host-device: revert name setting to make retries idempotent
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
2019-07-19 21:26:07 +08:00
Bruce Ma
869d5ec873
pkg/ipam : use delegateArgs instead of env set/unset in ipam.ExecDel
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
2019-06-18 21:02:01 +08:00
Dan Williams
e308211d34
Merge pull request #300 from zshi-redhat/host-device-pci-parameter
...
host-device: add pciBusID property
2019-05-29 11:06:00 -05:00
Nick Ethier
37d2ee1d5d
bridge: don't use canonical CIDR address when setting up IP masquerade
2019-05-25 20:55:47 -04:00
Nick Ethier
7f9b1844b8
bridge: add test for ipMasq rules
2019-05-24 23:14:31 -04:00
Casey Callendrello
0950a3607b
Merge pull request #279 from mars1024/bugfix/ipmasq_source
...
change source of ipmasq rule from ipn to ip
2019-05-10 13:40:17 +02:00
Michael Cambria
02ccf1ef9b
Have ipam.ExecDel set CNI_COMMAND to DEL
2019-05-08 11:50:28 -04:00
Casey Callendrello
a03e6b505e
Merge pull request #307 from SchSeba/l2-macvlan
...
Allow to configure empty ipam for macvlan
2019-05-08 17:27:52 +02:00
Sebastian Sch
af692de1b8
Allow to configure empty ipam for macvlan
...
This PR add the option to configure an empty ipam for the macvlan cni plugin.
When using the macvlan cni plugin with an empty ipam the requeted pod will get the macvlan interface but without any ip address.
One of the use cases for this feature is for projects that runs a dhcp server inside the pod like KubeVirt.
In KubeVirt we need to let the vm running inside the pod to make the dhcp request so it will be able to make a release an renew request when needed.
2019-05-01 20:29:22 +03:00
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