Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CNI_ARGS in static IPAM plugin #165

Merged
merged 8 commits into from
Sep 25, 2018
Merged
Prev Previous commit
Next Next commit
Incorporate jellonek's comments.
  • Loading branch information
s1061123 committed Jul 6, 2018
commit 3b3622db67614c2055e75187cc70aa197fda051a
5 changes: 3 additions & 2 deletions plugins/ipam/static/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,17 @@ static IPAM is very simple IPAM plugin that assigns IPv4 and IPv6 addresses stat
## Network configuration reference

* `type` (string, required): "static"
* `addresses` (array, optional): an array of arrays of ip address objects:
* `addresses` (array, optional): an array of ip address objects:
* `address` (string, required): CIDR notation IP address.
* `gateway` (string, optional): IP inside of "subnet" to designate as the gateway.
* `routes` (string, optional): list of routes add to the container namespace. Each route is a dictionary with "dst" and optional "gw" fields. If "gw" is omitted, value of "gateway" will be used.
* `dns` (string, optional): the dictionary with "nameservers", "domain" and "search".

## Supported arguments

The following [CNI_ARGS](https://github.com/containernetworking/cni/blob/master/SPEC.md#parameters) are supported:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing new line before this one. Please keep that in sync with rest of document.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.


* `IP`: request a specific IP address from a subnet
* `IP`: request a specific IP address
* `SUBNET`: request a specific subnet
* `GATEWAY`: request a specific gateway address

Expand Down