File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments