if state2 == 'running' \
                    and net_name in nets2 \
                    and result2['Id'] not in connected_containers:
                del nets2[net_name]