Skip to content

Commit

Permalink
cni: add loopback to linux bridge (#13428)
Browse files Browse the repository at this point in the history
CNI changed how to bring up the interface in v0.2.0.
Support was moved to a new loopback plugin.

containernetworking/cni#121

Fixes #10014
  • Loading branch information
h0tw1r3 committed Jun 20, 2022
1 parent b335e04 commit eff2c01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/13428.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cni: Fixed a bug where loopback address was not set for all drivers
```
3 changes: 3 additions & 0 deletions client/allocrunner/networking_bridge_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ const nomadCNIConfigTemplate = `{
"cniVersion": "0.4.0",
"name": "nomad",
"plugins": [
{
"type": "loopback"
},
{
"type": "bridge",
"bridge": "%s",
Expand Down

0 comments on commit eff2c01

Please sign in to comment.