automation-tests/common/libnetwork/cni
Kir Kolyshkin 555b817630 libnetwork/types: rename RegexError to ErrInvalidName
... and add a deprecated alias so backward compatibility is still
preserved (and users can gradually switch to the new name).

Done because this is now also reported by staticcheck
(in addition to revive) linter.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-03-26 09:36:14 -07:00
..
testfiles libnetwork/cni: remove dnsname dependency from tests 2024-05-15 18:23:29 +02:00
README.md add libnetwork package 2021-12-16 19:07:38 +01:00
cni_conversion.go Replace golang.org/x/exp/slices with slices from std 2024-04-22 14:12:47 +02:00
cni_exec.go Gate CNI support behind the `cni` build tag 2024-01-30 09:18:31 +01:00
cni_suite_test.go Gate CNI support behind the `cni` build tag 2024-01-30 09:18:31 +01:00
cni_types.go libnetwork: use fileutils.(Le|E)xists 2024-04-10 12:23:07 +02:00
config.go libnetwork/netavark: allow same bridge name with different vlan 2025-01-30 19:28:24 +01:00
config_freebsd.go Gate CNI support behind the `cni` build tag 2024-01-30 09:18:31 +01:00
config_linux.go Gate CNI support behind the `cni` build tag 2024-01-30 09:18:31 +01:00
config_test.go update golangci-lint to 1.60.3 2024-09-03 15:57:02 +02:00
network.go libnetwork/types: rename RegexError to ErrInvalidName 2025-03-26 09:36:14 -07:00
run.go update golangci-lint to 1.60.3 2024-09-03 15:57:02 +02:00
run_freebsd.go libnetwork/cni: use 'ifconfig -j' on FreeBSD if it is supported 2023-08-17 07:54:34 +01:00
run_linux.go Build libnetwork/cni on FreeBSD 2022-05-14 10:55:32 +01:00
run_test.go lint: enable ginkgolinter 2024-03-18 11:51:54 +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.