'Given a router_id, make sure that the router is in a local
namespace.'

def is_router_in_namespace(self, router_id):

    local_namespaces = self._local_namespaces()
    ri = self._router_info.get(router_id)
    return (ri and (ri.ns_name in local_namespaces))
