cni.git
8 years agoMerge pull request #445 from feiskyer/cniversion
Dan Williams [Fri, 5 May 2017 22:47:26 +0000 (17:47 -0500)]
Merge pull request #445 from feiskyer/cniversion

Add cniVersion to Result

8 years agoMerge pull request #447 from gunjan5/invalid-spec-json
Tom Denham [Thu, 4 May 2017 23:06:04 +0000 (16:06 -0700)]
Merge pull request #447 from gunjan5/invalid-spec-json

Fix invalid json

8 years agofix invalid json
gunjan5 [Thu, 4 May 2017 22:59:11 +0000 (15:59 -0700)]
fix invalid json

8 years agoFix testings accross the project
Pengfei Ni [Wed, 3 May 2017 15:21:44 +0000 (23:21 +0800)]
Fix testings accross the project

Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
8 years agoAdd cniVersion to Result
Pengfei Ni [Wed, 3 May 2017 13:38:28 +0000 (21:38 +0800)]
Add cniVersion to Result

Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
8 years agoMerge pull request #433 from dunjut/master
Dan Williams [Sat, 29 Apr 2017 01:58:17 +0000 (20:58 -0500)]
Merge pull request #433 from dunjut/master

scripts: cleanup() should rm net container in docker-run.sh

8 years agoMerge pull request #440 from feiskyer/cap
Dan Williams [Sat, 29 Apr 2017 01:55:31 +0000 (20:55 -0500)]
Merge pull request #440 from feiskyer/cap

cnitool: support capablity args

8 years agoMerge pull request #439 from dnardo/netlink-update
Dan Williams [Tue, 25 Apr 2017 15:24:05 +0000 (10:24 -0500)]
Merge pull request #439 from dnardo/netlink-update

vendor: Update vishvanana/netlink dependency.

8 years agocnitool: support capablity args
Pengfei Ni [Tue, 25 Apr 2017 09:35:03 +0000 (17:35 +0800)]
cnitool: support capablity args

Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
8 years agoMerge pull request #391 from tangle329/master
Dan Williams [Tue, 25 Apr 2017 03:00:07 +0000 (22:00 -0500)]
Merge pull request #391 from tangle329/master

Validate rangeStart and rangeEnd specified in conf

8 years agoMerge pull request #435 from micahhausler/patch-1
Tom Denham [Mon, 24 Apr 2017 18:21:33 +0000 (11:21 -0700)]
Merge pull request #435 from micahhausler/patch-1

Fixed table formatting

8 years agoUpdate netlink dependency.
Daniel Nardo [Mon, 24 Apr 2017 17:31:24 +0000 (10:31 -0700)]
Update netlink dependency.

8 years agoFixed table formatting
Micah Hausler [Fri, 21 Apr 2017 19:22:56 +0000 (15:22 -0400)]
Fixed table formatting

8 years agoscripts: cleanup() should rm net container in docker-run.sh
du [Fri, 21 Apr 2017 10:27:46 +0000 (18:27 +0800)]
scripts: cleanup() should rm net container in docker-run.sh

8 years agoMerge pull request #432 from dunjut/master
Bryan Boreham [Fri, 21 Apr 2017 10:12:49 +0000 (11:12 +0100)]
Merge pull request #432 from dunjut/master

README: build the plugins using ./build.sh, not ./build

8 years agoREADME: build the plugins using ./build.sh, not ./build
du [Fri, 21 Apr 2017 07:29:57 +0000 (15:29 +0800)]
README: build the plugins using ./build.sh, not ./build

8 years agoMerge pull request #430 from kris-nova/remove-proposal
Gabe Rosenhouse [Sun, 16 Apr 2017 18:13:24 +0000 (11:13 -0700)]
Merge pull request #430 from kris-nova/remove-proposal

Wondering if this is still a proposal?

8 years agoChanging Proposal->Specification in Spec
Kris Nova [Sun, 16 Apr 2017 17:01:23 +0000 (11:01 -0600)]
Changing Proposal->Specification in Spec

8 years agoMerge pull request #419 from asridharan/cnitool
Gabe Rosenhouse [Fri, 7 Apr 2017 17:20:07 +0000 (10:20 -0700)]
Merge pull request #419 from asridharan/cnitool

Added documentation for `cnitool`

8 years agoDocumentation: Added documentation for `cnitool`.
Avinash Sridharan [Thu, 30 Mar 2017 22:28:36 +0000 (22:28 +0000)]
Documentation: Added documentation for `cnitool`.

Added documentation to simplify the usage of `cnitool` and the
settings expected to be used with `cnitool`.

8 years agolibcni: Fixed tests that were checking error strings.
Avinash Sridharan [Tue, 4 Apr 2017 16:49:48 +0000 (16:49 +0000)]
libcni: Fixed tests that were checking error strings.

Checking error strings makes these tests flaky, especially if the
error string is changed in libcni. Have gone ahead an introduced a new
error type `NoConfigsFoundError` and the Match is against the error
type making it more deterministic.

8 years agolibcni: Improved error messages.
Avinash Sridharan [Thu, 30 Mar 2017 22:06:02 +0000 (22:06 +0000)]
libcni: Improved error messages.

Improved the error reporting to be more descriptive when configuration
files are not filed while using the cni-tool.

8 years agoMerge pull request #413 from dcbw/spec-fix-ips
Tom Denham [Wed, 5 Apr 2017 21:39:44 +0000 (14:39 -0700)]
Merge pull request #413 from dcbw/spec-fix-ips

spec/plugins: fix 'ip'->'ips' in the spec, bump to 0.3.1

8 years agospec/plugins: fix 'ip'->'ips' in the spec, bump to 0.3.1
Dan Williams [Wed, 22 Mar 2017 19:21:53 +0000 (14:21 -0500)]
spec/plugins: fix 'ip'->'ips' in the spec, bump to 0.3.1

8 years agoMerge pull request #423 from rosenhouse/update-travis
Gabe Rosenhouse [Wed, 5 Apr 2017 16:26:49 +0000 (09:26 -0700)]
Merge pull request #423 from rosenhouse/update-travis

travis: shift forward to Go 1.8 and 1.7

8 years agoMerge pull request #421 from kshafiee/patch-1
Gabe Rosenhouse [Wed, 5 Apr 2017 16:24:21 +0000 (09:24 -0700)]
Merge pull request #421 from kshafiee/patch-1

Added entry for CNI-Genie

8 years agotravis: shift forward to Go 1.8 and 1.7
Gabe Rosenhouse [Wed, 5 Apr 2017 16:11:35 +0000 (09:11 -0700)]
travis: shift forward to Go 1.8 and 1.7

8 years agoMerge pull request #400 from lstoll/lstoll-rename-build-script
Dan Williams [Wed, 5 Apr 2017 16:03:23 +0000 (11:03 -0500)]
Merge pull request #400 from lstoll/lstoll-rename-build-script

Rename build script to avoid conflict with bazel

8 years agoAdded entry for CNI-Genie
kshafiee [Mon, 3 Apr 2017 19:00:02 +0000 (12:00 -0700)]
Added entry for CNI-Genie

CNI-Genie enables orchestrators (kubernetes, mesos) for seamless connectivity to choice of CNI plugins (calico, canal, romana, weave) configured on a Node

8 years agoUpdate community sync detail
Tom Denham [Fri, 31 Mar 2017 21:38:48 +0000 (14:38 -0700)]
Update community sync detail

8 years agoMerge pull request #414 from kad/s390x
Tom Denham [Mon, 27 Mar 2017 17:10:06 +0000 (10:10 -0700)]
Merge pull request #414 from kad/s390x

Enable s390x build

8 years agoEnable s390x build
Alexander Kanevskiy [Wed, 22 Mar 2017 20:55:33 +0000 (22:55 +0200)]
Enable s390x build

8 years agoMerge pull request #412 from tomdee/safe-del
Tom Denham [Wed, 22 Mar 2017 16:47:29 +0000 (09:47 -0700)]
Merge pull request #412 from tomdee/safe-del

plugins/*: Don't error if the device doesn't exist

8 years agoplugins/*: Don't error if the device doesn't exist
Tom Denham [Mon, 20 Mar 2017 22:49:35 +0000 (15:49 -0700)]
plugins/*: Don't error if the device doesn't exist

I wasn't able to test or update the dhcp plugin but from a code read it
should be fine. All the other plugins are tested and fixed

8 years agoMerge pull request #407 from aaronlevy/del-err
Tom Denham [Tue, 21 Mar 2017 17:43:40 +0000 (10:43 -0700)]
Merge pull request #407 from aaronlevy/del-err

plugins/meta/flannel: If net config is missing do not return err on DEL

8 years agoplugins/meta/flannel: If net config is missing do not return err on DEL
Aaron Levy [Fri, 17 Mar 2017 01:46:39 +0000 (18:46 -0700)]
plugins/meta/flannel: If net config is missing do not return err on DEL

8 years agoMerge pull request #396 from cf-container-networking/vendored-types-leakage
Gabe Rosenhouse [Fri, 17 Mar 2017 02:20:40 +0000 (19:20 -0700)]
Merge pull request #396 from cf-container-networking/vendored-types-leakage

pkg/ip: do not leak types from vendored netlink package

8 years agoMerge pull request #401 from chrismarino/patch-1
Brandon Philips [Wed, 15 Mar 2017 19:38:04 +0000 (12:38 -0700)]
Merge pull request #401 from chrismarino/patch-1

Added Romana to list of CNI providers...

8 years agoAdded Romana to list of CNI providers...
chrismarino [Wed, 15 Mar 2017 19:10:21 +0000 (12:10 -0700)]
Added Romana to list of CNI providers...

Added Romana to list of CNI providers.

8 years agoRename build script to avoid conflict with bazel
Lincoln Stoll [Wed, 15 Mar 2017 04:53:56 +0000 (15:53 +1100)]
Rename build script to avoid conflict with bazel

It's difficult to include this repository using bazel, because
the file named "build" conflicts with new_go_repository generation
on case-insensitive filesystems (ref
https://github.com/bazelbuild/rules_go/issues/234). This change
renames the file to something that doesn't conflict, and also
renames the test script for consistency.

8 years agopkg/ip: improve docstring for SetupVeth
Gabe Rosenhouse [Mon, 13 Mar 2017 18:27:12 +0000 (11:27 -0700)]
pkg/ip: improve docstring for SetupVeth

8 years agopkg/ip: SetupVeth returns net.Interface
Gabe Rosenhouse [Fri, 10 Mar 2017 17:49:46 +0000 (09:49 -0800)]
pkg/ip: SetupVeth returns net.Interface

8 years agoValidate rangeStart and rangeEnd specified in conf
Tang Le [Fri, 10 Mar 2017 02:22:25 +0000 (10:22 +0800)]
Validate rangeStart and rangeEnd specified in conf

Signed-off-by: Tang Le <tangle3@wanda.cn>
8 years agopkg/ip: do not leak types from vendored netlink package
Jay Dunkelberger [Thu, 9 Mar 2017 21:55:15 +0000 (13:55 -0800)]
pkg/ip: do not leak types from vendored netlink package

The exported function SetupVeth now returns a package-defined type.

Signed-off-by: Gabe Rosenhouse <grosenhouse@pivotal.io>
8 years agoMerge pull request #393 from containernetworking/community-sync-readme
Gabe Rosenhouse [Thu, 9 Mar 2017 00:46:44 +0000 (16:46 -0800)]
Merge pull request #393 from containernetworking/community-sync-readme

readme.md: Add link to community sync

8 years agoreadme.md: Add link to community sync
Tom Denham [Wed, 8 Mar 2017 23:54:15 +0000 (15:54 -0800)]
readme.md: Add link to community sync

8 years agoMerge pull request #366 from ehazlett/ipam-host-local-initial-reserved-ip
Gabe Rosenhouse [Mon, 6 Mar 2017 15:13:06 +0000 (07:13 -0800)]
Merge pull request #366 from ehazlett/ipam-host-local-initial-reserved-ip

Do not error if last reserved not found after initial creation

8 years agofix unrelated failing tests
Evan Hazlett [Thu, 2 Mar 2017 20:37:43 +0000 (15:37 -0500)]
fix unrelated failing tests

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
8 years agoadd test for ensuring initial subnet creation does not contain an error
Evan Hazlett [Thu, 2 Mar 2017 20:16:09 +0000 (15:16 -0500)]
add test for ensuring initial subnet creation does not contain an error

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
8 years agodo not error if last_reserved_ip is missing for host local ipam
Evan Hazlett [Fri, 3 Feb 2017 22:58:30 +0000 (17:58 -0500)]
do not error if last_reserved_ip is missing for host local ipam

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
8 years agoMerge pull request #387 from tangle329/master
Tom Denham [Thu, 2 Mar 2017 17:23:02 +0000 (09:23 -0800)]
Merge pull request #387 from tangle329/master

Check n.IPAM before use it in LoadIPAMConfig function

8 years agoMerge pull request #373 from dcbw/conflist-runtime-config
Dan Williams [Thu, 2 Mar 2017 17:17:00 +0000 (11:17 -0600)]
Merge pull request #373 from dcbw/conflist-runtime-config

spec,libcni: add support for injecting runtimeConfig into plugin stdin data

8 years agoCheck n.IPAM before use it in LoadIPAMConfig function
Tang Le [Thu, 2 Mar 2017 02:25:19 +0000 (10:25 +0800)]
Check n.IPAM before use it in LoadIPAMConfig function

Signed-off-by: Tang Le <tangle3@wanda.cn>
8 years agospec,libcni: add support for injecting runtimeConfig into plugin stdin data
Dan Williams [Fri, 17 Feb 2017 04:57:12 +0000 (22:57 -0600)]
spec,libcni: add support for injecting runtimeConfig into plugin stdin data

Add a new CapabilityArgs member to the RuntimeConf struct which runtimes can
use to pass arbitrary capability-based keys to the plugin.  Elements of this
member will be filtered against the plugin's advertised capabilities (from
its config JSON) and then added to a new "runtimeConfig" top-level map added
to the config JSON sent to the plugin on stdin.

Also "runtime_config"->"runtimeConfig" in CONVENTIONS.md to make
capitalization consistent with other CNI config keys like "cniVersion".

8 years agoMerge pull request #382 from rosenhouse/doc-spec-upgrade
Tom Denham [Wed, 1 Mar 2017 16:45:56 +0000 (08:45 -0800)]
Merge pull request #382 from rosenhouse/doc-spec-upgrade

Documentation: guidance for upgrading to CNI Spec v0.3.0

8 years agoMinor rewording about default config version
Casey Callendrello [Tue, 28 Feb 2017 18:44:25 +0000 (19:44 +0100)]
Minor rewording about default config version

8 years agoMerge pull request #383 from dcbw/test-fixes
Dan Williams [Mon, 27 Feb 2017 22:13:45 +0000 (16:13 -0600)]
Merge pull request #383 from dcbw/test-fixes

tests: misc test fixes

8 years agoMerge pull request #374 from squeed/config-list-upconvert
Dan Williams [Mon, 27 Feb 2017 21:10:37 +0000 (15:10 -0600)]
Merge pull request #374 from squeed/config-list-upconvert

libcni: up-convert a Config to a ConfigList when no other configs are found.

8 years agoMerge pull request #377 from squeed/ptp-sandbox
Dan Williams [Mon, 27 Feb 2017 21:06:57 +0000 (15:06 -0600)]
Merge pull request #377 from squeed/ptp-sandbox

plugins/main/ptp: set the Sandbox property on the response

8 years agoMerge pull request #380 from bboreham/patch-1
Dan Williams [Mon, 27 Feb 2017 21:06:26 +0000 (15:06 -0600)]
Merge pull request #380 from bboreham/patch-1

Add Bryan Boreham as maintainer

8 years agopkg/types: misc current types testcase cleanups
Dan Williams [Mon, 27 Feb 2017 19:28:07 +0000 (13:28 -0600)]
pkg/types: misc current types testcase cleanups

8 years agopkg/testutils: return errors after restoring stdout
Dan Williams [Mon, 27 Feb 2017 19:27:19 +0000 (13:27 -0600)]
pkg/testutils: return errors after restoring stdout

Ensures Ginkgo is able to print detailed failure messages instead
of them being captured by the pipe.

8 years agoMerge pull request #375 from aaithal/complieOnNonLinuxPlatforms
Dan Williams [Mon, 27 Feb 2017 17:46:22 +0000 (11:46 -0600)]
Merge pull request #375 from aaithal/complieOnNonLinuxPlatforms

pkg/ns: refactored so that builds succeed on non-linux platforms

8 years agodocs: table formatting is hard
Gabe Rosenhouse [Mon, 27 Feb 2017 15:57:00 +0000 (07:57 -0800)]
docs: table formatting is hard

8 years agodocs: fill-out and correct version conversion table
Gabe Rosenhouse [Mon, 27 Feb 2017 15:53:09 +0000 (07:53 -0800)]
docs: fill-out and correct version conversion table

8 years agodocs: minor improvements to spec-upgrades
Gabe Rosenhouse [Mon, 27 Feb 2017 15:11:04 +0000 (07:11 -0800)]
docs: minor improvements to spec-upgrades

8 years agodocs: add small upgrade instructions
Casey Callendrello [Mon, 27 Feb 2017 13:57:31 +0000 (14:57 +0100)]
docs: add small upgrade instructions

8 years agodocs: minor improvements to 0.3.0 upgrade guidance
Casey Callendrello [Mon, 27 Feb 2017 13:27:56 +0000 (14:27 +0100)]
docs: minor improvements to 0.3.0 upgrade guidance

8 years agodocs: Edits to v0.3.0 upgrade guidance
Gabe Rosenhouse [Mon, 27 Feb 2017 00:53:52 +0000 (16:53 -0800)]
docs: Edits to v0.3.0 upgrade guidance

8 years agodocs: CNI versioning for 0.3.0 upgrade
Dan Williams [Sun, 26 Feb 2017 21:26:14 +0000 (13:26 -0800)]
docs: CNI versioning for 0.3.0 upgrade

8 years agolibcni: up-convert a Config to a ConfigList when no other configs are found.
Casey Callendrello [Fri, 17 Feb 2017 11:19:38 +0000 (12:19 +0100)]
libcni: up-convert a Config to a ConfigList when no other configs are found.

8 years agoMerge pull request #379 from Intel-Corp/master
Tom Denham [Thu, 23 Feb 2017 18:40:59 +0000 (10:40 -0800)]
Merge pull request #379 from Intel-Corp/master

README: List multus as 3rd party plugin

8 years agovendor: Update vishvanana/netlink dependency
Aithal [Thu, 23 Feb 2017 17:53:11 +0000 (09:53 -0800)]
vendor: Update vishvanana/netlink dependency

8 years agopkg/ip: refactored so that builds succeed on non-linux platforms
Aithal [Thu, 23 Feb 2017 17:52:13 +0000 (09:52 -0800)]
pkg/ip: refactored so that builds succeed on non-linux platforms

moved functions that depend on linux packages into a separate file and added
nop methods with a build tag for non-linux platforms in a new file.

8 years agopkg/ns, pkg/types: refactored non linux build fix code to
Aithal [Thu, 23 Feb 2017 17:50:48 +0000 (09:50 -0800)]
pkg/ns, pkg/types: refactored non linux build fix code to

Make GetCurrentNS platform specific instead of getCurrentThreadNetNSPath

8 years agoMerge pull request #371 from rosenhouse/spec-netconf-routes
Dan Williams [Thu, 23 Feb 2017 02:32:41 +0000 (20:32 -0600)]
Merge pull request #371 from rosenhouse/spec-netconf-routes

spec: Remove `routes` from Network Configuration

8 years agoReplace Michael Bridgen with Bryan Boreham
Bryan Boreham [Wed, 22 Feb 2017 16:52:09 +0000 (16:52 +0000)]
Replace Michael Bridgen with Bryan Boreham

8 years agoREADME: List multus as 3rd party plugin
Kuralamudhan Ramakrishnan [Wed, 22 Feb 2017 16:13:12 +0000 (16:13 +0000)]
README: List multus as 3rd party plugin

refer #343 issue

8 years agoMerge pull request #376 from zackhsi/fix-grammar
Gabe Rosenhouse [Tue, 21 Feb 2017 01:51:38 +0000 (17:51 -0800)]
Merge pull request #376 from zackhsi/fix-grammar

Fix grammar

8 years agoplugins/main/ptp: set the Sandbox property on the response
Casey Callendrello [Mon, 20 Feb 2017 23:28:19 +0000 (00:28 +0100)]
plugins/main/ptp: set the Sandbox property on the response

8 years agoFix grammar
Zack Hsi [Mon, 20 Feb 2017 19:21:49 +0000 (11:21 -0800)]
Fix grammar

8 years agopkg/ns: refactored so that builds succeed on non-linux platforms
Aithal [Sat, 18 Feb 2017 01:04:53 +0000 (17:04 -0800)]
pkg/ns: refactored so that builds succeed on non-linux platforms

moved functions that depend on linux packages (sys/unix) into a separate file
and added nop methods with a build tag for non-linux platforms in a new file.

8 years agoMerge pull request #372 from rosenhouse/consolidate-host-local-docs
Gabe Rosenhouse [Mon, 20 Feb 2017 14:33:33 +0000 (06:33 -0800)]
Merge pull request #372 from rosenhouse/consolidate-host-local-docs

docs: consolidate host-local documentation

8 years agodocs: consolidate host-local documentation
Gabe Rosenhouse [Wed, 15 Feb 2017 23:18:25 +0000 (15:18 -0800)]
docs: consolidate host-local documentation

- remove the README.md in the plugins/ipam/host-local (no other plugin
  has this)
- merge that info into the main Documentation/host-local.md

8 years agospec: Remove `routes` from Network Configuration
Gabe Rosenhouse [Wed, 15 Feb 2017 23:02:23 +0000 (15:02 -0800)]
spec: Remove `routes` from Network Configuration

- this is supported by some IPAM plugins but is not required of all of
  them

8 years agoMerge pull request #369 from containernetworking/port-mapping
Tom Denham [Tue, 14 Feb 2017 19:47:59 +0000 (11:47 -0800)]
Merge pull request #369 from containernetworking/port-mapping

CONVENTIONS.md: Update details on port-mappings

8 years agoMore markups
Tom Denham [Mon, 13 Feb 2017 18:14:45 +0000 (10:14 -0800)]
More markups

8 years agoUpdate with feedback
Tom Denham [Thu, 9 Feb 2017 22:03:47 +0000 (14:03 -0800)]
Update with feedback

8 years agoCONVENTIONS.md: Update details on port-mappings
Tom Denham [Wed, 8 Feb 2017 20:43:04 +0000 (12:43 -0800)]
CONVENTIONS.md: Update details on port-mappings

After discussion with the CNI maintainers and representatives from Mesos and Kubernetes we've settled on this approach for passing the dynamic port mapping information from runtimes to plugins.

Including it in the plugin config allows "operators" to signal that they expect port mapping information to be passed to a specific plugin (or plugins). This follows the model that config passed in the plugin config should be acted upon by a plugin.

Runtimes can optionally return an error to users if they find no plugin in the chain that supports port mappings.

I'm sure we'd all like to see this merged soon so I'll try to turn any feedback quickly (and I'm happy to get any and all feedback - spellings, unclear working, wrong JSON terminology etc..)

8 years agoMerge pull request #361 from ofiliz/issue-360
Gabe Rosenhouse [Wed, 8 Feb 2017 18:15:49 +0000 (10:15 -0800)]
Merge pull request #361 from ofiliz/issue-360

invoke: Enable plugin file names with extensions

8 years agoinvoke: Enable plugin file names with extensions
Onur Filiz [Sat, 4 Feb 2017 20:01:47 +0000 (12:01 -0800)]
invoke: Enable plugin file names with extensions

A CNI network configuration file contains the plugin's executable file name.
Some platforms like Windows require a file name extension for executables.
This causes unnecessary burden on admins as they now have to maintain two
versions of each type of netconfig file, which differ only by the ".exe"
extension. A much simpler design is for invoke package to also look for
well-known extensions on platforms that require it. Existing tests are
improved and new tests are added to cover the new behavior.

Fixes #360

8 years agoMerge pull request #364 from pires/build_tag
Gabe Rosenhouse [Fri, 3 Feb 2017 19:18:39 +0000 (14:18 -0500)]
Merge pull request #364 from pires/build_tag

pkg/utils/sysctl/sysctl_linux.go: couple fixes

8 years agopkg/utils/sysctl/sysctl_linux.go: fix typo.
Paulo Pires [Fri, 3 Feb 2017 04:47:43 +0000 (04:47 +0000)]
pkg/utils/sysctl/sysctl_linux.go: fix typo.

8 years agopkg/utils/sysctl/sysctl_linux.go: fix build tag.
Paulo Pires [Fri, 3 Feb 2017 04:46:55 +0000 (04:46 +0000)]
pkg/utils/sysctl/sysctl_linux.go: fix build tag.

8 years agoMerge pull request #359 from ofiliz/issue-355
Tom Denham [Thu, 2 Feb 2017 20:35:07 +0000 (12:35 -0800)]
Merge pull request #359 from ofiliz/issue-355

libcni, pkg\invoke: Use OS-specific list separator when parsing CNI_PATH

8 years agospec, libcni, pkg/invoke: Use OS-agnostic separator when parsing CNI_PATH
Onur [Sat, 28 Jan 2017 21:30:00 +0000 (13:30 -0800)]
spec, libcni, pkg/invoke: Use OS-agnostic separator when parsing CNI_PATH

Hardcoding the list separator character as ":" causes CNI to fail when parsing
CNI_PATH on other operating systems. For example, Windows uses ";" as list
separator because ":" can legally appear in paths such as "C:\path\to\file".
This change replaces use of ":" with OS-agnostic APIs or os.PathListSeparator.

Fixes #358

8 years agoMerge pull request #145 from dcbw/pass-ifname-back
Gabe Rosenhouse [Wed, 25 Jan 2017 19:20:57 +0000 (11:20 -0800)]
Merge pull request #145 from dcbw/pass-ifname-back

Pass interface name and MAC back to runtime

8 years agospec/plugins: return interface details and multiple IP addresses to runtime
Dan Williams [Tue, 22 Nov 2016 17:32:35 +0000 (11:32 -0600)]
spec/plugins: return interface details and multiple IP addresses to runtime

Updates the spec and plugins to return an array of interfaces and IP details
to the runtime including:

- interface names and MAC addresses configured by the plugin
- whether the interfaces are sandboxed (container/VM) or host (bridge, veth, etc)
- multiple IP addresses configured by IPAM and which interface they
have been assigned to

Returning interface details is useful for runtimes, as well as allowing
more flexible chaining of CNI plugins themselves.  For example, some
meta plugins may need to know the host-side interface to be able to
apply firewall or traffic shaping rules to the container.

8 years agopkg/ipam: add testcases
Dan Williams [Thu, 19 Jan 2017 14:44:35 +0000 (08:44 -0600)]
pkg/ipam: add testcases

8 years agoplugins/flannel: organize test JSON alphabetically
Dan Williams [Wed, 18 Jan 2017 22:39:57 +0000 (16:39 -0600)]
plugins/flannel: organize test JSON alphabetically

Otherwise the test fails, since Go's JSON marshaller prints
dict items alphabetically in its String() call.