def destroy(self):
        # NOTE: Implementation is split on purpose

        # Request termination of all containers
        for enode in self.nmlnode_node_map.values():
            try:
                enode.stop()
            except:
                log.error(format_exc())

        # Remove the linked netns
        for enode in self.nmlnode_node_map.values():
            try:
                privileged_cmd('rm /var/run/netns/{pid}', pid=enode._pid)
            except:
                log.error(format_exc())
See :meth:`BasePlatform.destroy` for more information.
dataset/ETHPy150Open HPENetworking/topology_docker/lib/topology_docker/platform.py/DockerPlatform.destroy