'Performs cleanup for a router'

def ensure_router_cleanup(self, router_id):

    for ns in self.list_all():
        if ns.endswith(router_id):
            (ns_prefix, ns_id) = self.get_prefix_and_id(ns)
            self._cleanup(ns_prefix, ns_id)
