plugins.git
9 years agodocs/ptp: update example and DNS description
Stefan Junker [Wed, 27 Jan 2016 11:10:53 +0000 (12:10 +0100)]
docs/ptp: update example and DNS description

9 years ago*: add "dns" field to the configuration
Alban Crequy [Tue, 26 Jan 2016 17:54:56 +0000 (18:54 +0100)]
*: add "dns" field to the configuration

appc/cni#76 added a "dns" field in the result JSON. But before this
patch, the plugins had no way of knowing which name server to return.

There could be two ways of knowing which name server to return:
1. add it as an extra argument ("CNI_ARGS")
2. add it in the network configuration as a convenience (received via
   stdin)

I chose the second way because it is easier. In the case of rkt, it
means the user could just add the DNS name servers in
/etc/rkt/net.d/mynetwork.conf.

10 years agoflannel: doc fix and check for missing subnet.env fields
Eugene Yakubovich [Wed, 7 Oct 2015 22:11:54 +0000 (15:11 -0700)]
flannel: doc fix and check for missing subnet.env fields

- Document that flannel outputs FLANNEL_NETWORK b/c we use it
- Check and error out if expecited fields are missing in subnetEnv file

Fixes #72

10 years agoupdate ptp docs to reflect changes in plugin
Stefan Junker [Wed, 23 Sep 2015 20:11:25 +0000 (22:11 +0200)]
update ptp docs to reflect changes in plugin

10 years agohost-local: allow ip request via CNI_ARGS
Stefan Junker [Sun, 16 Aug 2015 00:30:04 +0000 (02:30 +0200)]
host-local: allow ip request via CNI_ARGS

A specific IP can now be requested via the environment variable CNI_ARGS, e.g.
`CNI_ARGS=ip=1.2.3.4`.
The plugin will try to reserve the specified IP.
If this is not successful the execution will fail.

10 years agoFix a few spelling mistakes in the docs
Alex Chan [Thu, 20 Aug 2015 15:41:25 +0000 (16:41 +0100)]
Fix a few spelling mistakes in the docs

10 years agoMerge pull request #34 from eyakubovich/document-plugins
Eugene Yakubovich [Wed, 22 Jul 2015 16:02:39 +0000 (09:02 -0700)]
Merge pull request #34 from eyakubovich/document-plugins

Document the plugins

10 years agoRename veth plugin to ptp and add docs.
Eugene Yakubovich [Fri, 10 Jul 2015 19:18:25 +0000 (12:18 -0700)]
Rename veth plugin to ptp and add docs.

ptp (point-to-point) better describes the nature of the plugin
as veth pairs are also used by the bridge plugin.

10 years agoDocument the plugins
Eugene Yakubovich [Fri, 10 Jul 2015 19:48:36 +0000 (12:48 -0700)]
Document the plugins

Adds a .md file to the Documentation/ folder for each plugin.

Fixes #16

10 years agoadd flannel plugin
Eugene Yakubovich [Mon, 1 Jun 2015 23:58:43 +0000 (16:58 -0700)]
add flannel plugin

This introduces a notion of a "meta" plugin. A meta plugin
is one that delegates the actual work of setting up the interface
to the main plugin. The meta plugin is used to select and dynamically
configure the main plugin. The sequence of events, is as follows:

Given netconf like:

    {
"name": "mynet",
"type": "flannel",
"delegate": {
    "type": "bridge"
}
    }

flannel fills in values like "mtu", "ipam.subnet" and delegates to
"bridge" main plugin. "bridge" plugin will operate as usual, calling
into ipam module for IP assignment.

Delegate dictionary should not contain "name" field as it will be
filled in by the flannel plugin.