mirror of https://github.com/containers/podman.git
Create a new mac address type which supports json marshal/unmarshal from and to string. This change is backwards compatible with the previous versions as the unmarshal method still accepts the old byte array or base64 encoded string. Signed-off-by: Paul Holzinger <pholzing@redhat.com> |
||
|---|---|---|
| .. | ||
| testfiles | ||
| README.md | ||
| cni_conversion.go | ||
| cni_exec.go | ||
| cni_suite_test.go | ||
| cni_types.go | ||
| config.go | ||
| config_test.go | ||
| network.go | ||
| run.go | ||
| run_test.go | ||
README.md
This package abstracts CNI from libpod.
It implements the ContainerNetwork interface defined in libpod/network/types/network.go for the CNI backend.
Testing
Run the tests with:
go test -v -mod=vendor -cover ./libpod/network/cni/
Run the tests as root to also test setup/teardown. This will execute CNI and therefore the cni plugins have to be installed.