better API for register_ifroute_agent_for_device