From 0fda7ea9516756455f631202517b2bc08c961e34 Mon Sep 17 00:00:00 2001 From: Dave Vogel Date: Tue, 3 Sep 2024 12:13:04 -0700 Subject: container: T6701: add support to disable container network DNS support Add ability to set the container network with a disable-dns setting to disable the DNS plugin that is on be default. set container network no-name-server (cherry picked from commit 1d5625d572cc25a9d53247b7c41177f17845b052) --- src/conf_mode/container.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/conf_mode/container.py') 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) -- cgit v1.2.3