-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #419 from asridharan/cnitool
Added documentation for `cnitool`
- Loading branch information
Showing
3 changed files
with
30 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Overview | ||
The `cnitool` is a utility that can be used to test a CNI plugin | ||
without the need for a container runtime. The `cnitool` takes a | ||
`network name` and a `network namespace` and a command to `ADD` or | ||
`DEL`,.i.e, attach or detach containers from a network. The `cnitool` | ||
relies on the following environment variables to operate properly: | ||
* `NETCONFPATH`: This environment variable needs to be set to a | ||
directory. It defaults to `/etc/cni/net.d`. The `cnitool` searches | ||
for CNI configuration files in this directory with the extension | ||
`*.conf` or `*.json`. It loads all the CNI configuration files in | ||
this directory and if it finds a CNI configuration with the `network | ||
name` given to the cnitool it returns the corresponding CNI | ||
configuration, else it returns `nil`. | ||
|
||
* `CNI_PATH`: For a given CNI configuration `cnitool` will search for | ||
the corresponding CNI plugin in this path. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters