host-local: allow ip request via CNI_ARGS
authorStefan Junker <mail@stefanjunker.de>
Sun, 16 Aug 2015 00:30:04 +0000 (02:30 +0200)
committerStefan Junker <mail@stefanjunker.de>
Thu, 3 Sep 2015 23:38:22 +0000 (01:38 +0200)
commitd1a09053456f6a9f075d2f4c4dfc0e79144c0153
tree850beac2296d030b64e2c4c3e9318a48416a49d0
parent4f74b7804186c75e0e55a7cdb2409769bff7509f
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.
plugin/args.go [new file with mode: 0644]