summaryrefslogtreecommitdiff
path: root/src/conf_mode/container.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-12 05:26:46 +0000
committerGitHub <noreply@github.com>2024-09-12 05:26:46 +0000
commit4d2d4311f12c7466edc904be41ec4e716021e791 (patch)
tree21b29b0d628e72c0b951670b31cdd6f532a83f18 /src/conf_mode/container.py
parentde8d388c9cf32eb9ef9f38abb2d6ba292f56069f (diff)
parent1d5625d572cc25a9d53247b7c41177f17845b052 (diff)
downloadvyos-1x-4d2d4311f12c7466edc904be41ec4e716021e791.tar.gz
vyos-1x-4d2d4311f12c7466edc904be41ec4e716021e791.zip
Merge pull request #4032 from dvlogic/Allow_Container_DNS_Disable
T6701: Added ability to disable the container DNS plugin
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)