Merge pull request #1208 from Luap99/macvlan-dns

libnetwork/netavark: disable dns for macvlan
This commit is contained in:
OpenShift Merge Robot 2022-10-25 10:40:43 -04:00 committed by GitHub
commit 2533870d24
2 changed files with 6 additions and 1 deletions

View File

@ -170,6 +170,11 @@ func createMacvlan(network *types.Network) error {
}
}
// always turn dns off with macvlan, it is not implemented in netavark
// and makes little sense to support with macvlan
// see https://github.com/containers/netavark/pull/467
network.DNSEnabled = false
// we already validated the drivers before so we just have to set the default here
switch network.IPAMOptions[types.Driver] {
case "":

View File

@ -54,7 +54,7 @@ type Network struct {
// to public or other Networks.
Internal bool `json:"internal"`
// DNSEnabled is whether name resolution is active for container on
// this Network.
// this Network. Only supported with the bridge driver.
DNSEnabled bool `json:"dns_enabled"`
// Labels is a set of key-value labels that have been applied to the
// Network.