rust-cni
This is the CNI plugin impl by rust for container-runtime create CNI network.
requirements
- Install cni plugin in /opt/cni/bin
- Prepare cni config in /etc/cni/net.d
Test
## Run test
should as root user
```bash
cargo test --test it_test -- --test-threads=1 --nocapture
example
use ;
use Libcni;
use NetNs;
use setns;
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
references
- Containerd cni plugins (https://github.com/containerd/go-cni)
- cni-rs (https://github.com/divinerapier/cni-rs)
Contributing
Contributions are welcome! Please open an issue or submit a pull request if you have any improvements or bug fixes.
For more detailed information, please refer to the source code and documentation.