Skip to content

Commit

Permalink
Merge pull request #539 from stgraber/main
Browse files Browse the repository at this point in the history
incusd/network/bridge: Set local address on all VXLAN tunnels
  • Loading branch information
hallyn authored Feb 27, 2024
2 parents f1d9b27 + b4f45ae commit d8ce53c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions internal/server/network/driver_bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -1180,10 +1180,15 @@ func (n *bridge) setup(oldConfig map[string]string) error {

vxlan := &ip.Vxlan{
Link: ip.Link{Name: tunName},
Local: tunLocal,
}

if tunLocal != "" && tunRemote != "" {
vxlan.Local = tunLocal
if tunRemote != "" {
// Skip partial configs.
if tunLocal == "" {
continue
}

vxlan.Remote = tunRemote
} else {
if tunGroup == "" {
Expand Down

0 comments on commit d8ce53c

Please sign in to comment.