cni.git
10 years agoMerge pull request #19 from eyakubovich/err-handling
Jonathan Boulle [Thu, 11 Jun 2015 17:37:37 +0000 (10:37 -0700)]
Merge pull request #19 from eyakubovich/err-handling

Propagate json error object to the caller

10 years agoPropagate json error object to the caller
Eugene Yakubovich [Tue, 2 Jun 2015 00:34:00 +0000 (17:34 -0700)]
Propagate json error object to the caller

When plugin errors out, it prints out a JSON object to stdout
describing the failure. This object needs to be propagated out
through the plugins and to the container runtime. This change
also adds Print method to both the result and error structs
for easy serialization to stdout.

10 years agoMerge pull request #13 from eyakubovich/dhcp
Eugene Yakubovich [Fri, 22 May 2015 01:18:58 +0000 (18:18 -0700)]
Merge pull request #13 from eyakubovich/dhcp

DHCP plugin

10 years agoadd DHCP IPAM plugin
Eugene Yakubovich [Tue, 19 May 2015 19:02:41 +0000 (12:02 -0700)]
add DHCP IPAM plugin

The plugin binary actually functions in two modes. The first mode
is a regular CNI plugin. The second mode (when stared with "daemon" arg)
runs a DHCP client daemon. When executed as a CNI plugin, it issues
an RPC request to the daemon for actual processing. The daemon is
required since a DHCP lease needs to be maintained by periodically
renewing it. One instance of the daemon can server arbitrary number
of containers/leases.

10 years agomacvlan and ipvlan: rename tmp iface name prior to calling IPAM
Eugene Yakubovich [Tue, 19 May 2015 18:55:06 +0000 (11:55 -0700)]
macvlan and ipvlan: rename tmp iface name prior to calling IPAM

10 years agofix bridge to call IPAM after link creation
Eugene Yakubovich [Tue, 19 May 2015 18:53:41 +0000 (11:53 -0700)]
fix bridge to call IPAM after link creation

10 years agovendoring sys/unix, go-systemd, dhcp libraries
Eugene Yakubovich [Tue, 19 May 2015 18:49:13 +0000 (11:49 -0700)]
vendoring sys/unix, go-systemd, dhcp libraries

10 years agoMerge pull request #12 from eyakubovich/git-ignore
Eugene Yakubovich [Mon, 11 May 2015 19:18:08 +0000 (12:18 -0700)]
Merge pull request #12 from eyakubovich/git-ignore

adding .gitignore

10 years agoadding .gitignore
Eugene Yakubovich [Mon, 11 May 2015 18:12:24 +0000 (11:12 -0700)]
adding .gitignore

10 years agoMerge pull request #9 from eyakubovich/errors
Eugene Yakubovich [Fri, 8 May 2015 22:08:03 +0000 (15:08 -0700)]
Merge pull request #9 from eyakubovich/errors

report errors via JSON

10 years agoreport errors via JSON
Eugene Yakubovich [Thu, 30 Apr 2015 00:52:41 +0000 (17:52 -0700)]
report errors via JSON

This reflects the latest SPEC draft.

10 years agoMerge pull request #11 from eyakubovich/nspath
Eugene Yakubovich [Fri, 8 May 2015 22:02:56 +0000 (15:02 -0700)]
Merge pull request #11 from eyakubovich/nspath

Do not use netns as ID or for entropy

10 years agoDo not use netns as ID or for entropy
Eugene Yakubovich [Tue, 5 May 2015 20:35:20 +0000 (13:35 -0700)]
Do not use netns as ID or for entropy

ContainerID is now required so use that
or generate random bytes.

Fixes #5

10 years agoMerge pull request #2 from jonboulle/master
Eugene Yakubovich [Tue, 5 May 2015 21:41:38 +0000 (14:41 -0700)]
Merge pull request #2 from jonboulle/master

*: first cut at SPEC and README

10 years agoMerge pull request #8 from steveeJ/ipvlan
Eugene Yakubovich [Tue, 5 May 2015 20:35:11 +0000 (13:35 -0700)]
Merge pull request #8 from steveeJ/ipvlan

plugins: add ipvlan main plugin

10 years agoplugins: add ipvlan main plugin
Stefan Junker [Sun, 3 May 2015 06:18:03 +0000 (23:18 -0700)]
plugins: add ipvlan main plugin

Add the ipvlan main plugin which is heavily based on the macvlan plugin.
Availabile modes for this plugin are l2 and l3, wheres l2 has the higher
compatibility due to support for multicast and broadcasts. L2 has therefore been
chosen as the default mode.
See the official docs at
https://www.kernel.org/doc/Documentation/networking/ipvlan.txt
for more information.

Fixes #6.

10 years agospec: incorporate feedback
Eugene Yakubovich [Wed, 29 Apr 2015 03:50:02 +0000 (20:50 -0700)]
spec: incorporate feedback

10 years agoSPEC: wording tweak
Jonathan Boulle [Mon, 20 Apr 2015 19:21:55 +0000 (12:21 -0700)]
SPEC: wording tweak

10 years agowording fixes
Eugene Yakubovich [Mon, 20 Apr 2015 19:12:05 +0000 (12:12 -0700)]
wording fixes

10 years ago*: first cut at SPEC and README
Jonathan Boulle [Thu, 16 Apr 2015 00:07:46 +0000 (17:07 -0700)]
*: first cut at SPEC and README

10 years agoAdd plugin code
Eugene Yakubovich [Wed, 15 Apr 2015 22:35:02 +0000 (15:35 -0700)]
Add plugin code

This adds basic plugins.
"main" types: veth, bridge, macvlan
"ipam" type: host-local

The code has been ported over from github.com/coreos/rkt project
and adapted to fit the CNI spec.

10 years agoInitial commit
Jonathan Boulle [Sun, 5 Apr 2015 03:35:49 +0000 (20:35 -0700)]
Initial commit