if state1 == 'running' \
                    and net_name in nets1 \
                    and result1['Id'] not in connected_containers:
                del nets1[net_name]