cni: add loopback to linux bridge (#13428)

CNI changed how to bring up the interface in v0.2.0.
Support was moved to a new loopback plugin.

https://github.com/containernetworking/cni/pull/121

Fixes #10014
This commit is contained in:
Jeffrey Clark 2022-06-20 10:22:53 -05:00 committed by GitHub
parent b7ea463d0e
commit a97699221c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

3
.changelog/13428.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
cni: Fixed a bug where loopback address was not set for all drivers
```

View File

@ -142,6 +142,9 @@ const nomadCNIConfigTemplate = `{
"cniVersion": "0.4.0", "cniVersion": "0.4.0",
"name": "nomad", "name": "nomad",
"plugins": [ "plugins": [
{
"type": "loopback"
},
{ {
"type": "bridge", "type": "bridge",
"bridge": "%s", "bridge": "%s",