podman/libpod/network/cni
Paul Holzinger 001d48929d
MAC address json unmarshal should allow strings
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>
2021-11-03 15:30:16 +01:00
..
testfiles Network interface 2021-08-24 12:28:03 +02:00
README.md Network interface 2021-08-24 12:28:03 +02:00
cni_conversion.go codespell code 2021-10-12 16:44:25 -04:00
cni_exec.go rootful: do not set XDG_RUNTIME_DIR for cni plugins 2021-09-24 11:25:02 +02:00
cni_suite_test.go Network interface 2021-08-24 12:28:03 +02:00
cni_types.go Replace 'an user' => 'a user' 2021-10-24 22:27:39 +02:00
config.go CNI: network remove do not error for ENOENT 2021-09-27 16:08:30 +02:00
config_test.go Merge pull request #11949 from Luap99/net-range 2021-10-13 18:42:15 +02:00
network.go CNI networks: reload networks if needed 2021-10-04 16:38:52 +02:00
run.go MAC address json unmarshal should allow strings 2021-11-03 15:30:16 +01:00
run_test.go MAC address json unmarshal should allow strings 2021-11-03 15:30:16 +01:00

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.