def trigger_config_deployment(self, request, queryset): """ Trigger deployment for managed hosts in selected ASes. """ for as_ in queryset.iterator(): for host in as_.hosts.filter(managed=True): deploy_host_config(host)
def trigger_config_deployment(self, request, queryset): """ Trigger deployment for selected managed hosts. """ for host in queryset.filter(managed=True).iterator(): deploy_host_config(host)