Skip to content

Commit

Permalink
vpcagent: ovn: use network.GuestDns when available
Browse files Browse the repository at this point in the history
  • Loading branch information
yousong committed Apr 24, 2020
1 parent 05c38c8 commit d2c0ba4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/vpcagent/ovn/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ func (keeper *OVNNorthboundKeeper) ClaimNetwork(ctx context.Context, network *ag
externalKeyOcRef: network.Id,
},
}
if network.GuestDns != "" {
dhcpopts.Options["dns_server"] = "{" + network.GuestDns + "}"
} else {
dhcpopts.Options["dns_server"] = "{223.5.5.5,223.6.6.6}"
}

var (
args []string
Expand Down

0 comments on commit d2c0ba4

Please sign in to comment.