summaryrefslogtreecommitdiff
path: root/src/conf_mode/container.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-09-12 13:42:57 +0100
committerGitHub <noreply@github.com>2024-09-12 13:42:57 +0100
commit9652bfda0a7f3e7932aecb32262c34f3fede72b2 (patch)
treee1b9eab8002bcdfd72103513b8d39c0ef63f8d6a /src/conf_mode/container.py
parent27cecc66756307b9c1c0946b5610ce2098096ede (diff)
parent0fda7ea9516756455f631202517b2bc08c961e34 (diff)
downloadvyos-1x-9652bfda0a7f3e7932aecb32262c34f3fede72b2.tar.gz
vyos-1x-9652bfda0a7f3e7932aecb32262c34f3fede72b2.zip
Merge pull request #4053 from vyos/mergify/bp/circinus/pr-4032
T6701: Added ability to disable the container DNS plugin (backport #4032)
Diffstat (limited to 'src/conf_mode/container.py')
-rwxr-xr-xsrc/conf_mode/container.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/container.py b/src/conf_mode/container.py
index ded370a7a..14387cbbf 100755
--- a/src/conf_mode/container.py
+++ b/src/conf_mode/container.py
@@ -421,6 +421,10 @@ def generate(container):
'driver': 'host-local'
}
}
+
+ if 'no_name_server' in network_config:
+ tmp['dns_enabled'] = False
+
for prefix in network_config['prefix']:
net = {'subnet': prefix, 'gateway': inc_ip(prefix, 1)}
tmp['subnets'].append(net)