Skip to content

Commit af78529

Browse files
committed
T7557: TEMPFIX: Disable container DNS due to bug
1 parent bd97505 commit af78529

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/conf_mode/container.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def generate(container):
461461
'subnets': [],
462462
'ipv6_enabled': False,
463463
'internal': False,
464-
'dns_enabled': True,
464+
'dns_enabled': False,
465465
'ipam_options': {
466466
'driver': 'host-local'
467467
},
@@ -512,8 +512,6 @@ def apply(container):
512512
if os.path.exists(file_path):
513513
os.unlink(file_path)
514514

515-
call('systemctl daemon-reload')
516-
517515
# Delete old networks if needed
518516
if 'network_remove' in container:
519517
for network in container['network_remove']:
@@ -544,7 +542,7 @@ def apply(container):
544542
if 'container_restart' in container and name in container['container_restart']:
545543
cmd(f'systemctl restart vyos-container-{name}.service')
546544

547-
if disabled_new:
545+
if disabled_new or 'container_remove' in container:
548546
call('systemctl daemon-reload')
549547

550548
# Start network and assign it to given VRF if requested. this can only be done

0 commit comments

Comments
 (0)