github.com/john-lin/cni@v0.6.0-rc1.0.20170712150331-b69e640cc0e2/Documentation/cnitool.md (about) 1 # Overview 2 The `cnitool` is a utility that can be used to test a CNI plugin 3 without the need for a container runtime. The `cnitool` takes a 4 `network name` and a `network namespace` and a command to `ADD` or 5 `DEL`,.i.e, attach or detach containers from a network. The `cnitool` 6 relies on the following environment variables to operate properly: 7 * `NETCONFPATH`: This environment variable needs to be set to a 8 directory. It defaults to `/etc/cni/net.d`. The `cnitool` searches 9 for CNI configuration files in this directory with the extension 10 `*.conf` or `*.json`. It loads all the CNI configuration files in 11 this directory and if it finds a CNI configuration with the `network 12 name` given to the cnitool it returns the corresponding CNI 13 configuration, else it returns `nil`. 14 15 * `CNI_PATH`: For a given CNI configuration `cnitool` will search for 16 the corresponding CNI plugin in this path.