def _router_added(self, router_id, router):
ri = RouterInfo(router_id, router)<EOL>driver = self.driver_manager.set_driver(router)<EOL>if router[ROUTER_ROLE_ATTR] in [<EOL>c_constants.ROUTER_ROLE_GLOBAL,<EOL>c_constants.ROUTER_ROLE_LOGICAL_GLOBAL]:<EOL><INDENT>LOG.debug("<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT:id>': router_id, '<STR_LIT>': router[ROUTER_ROLE_ATTR]})<EOL><DEDENT>else:<EOL><INDENT>driver.router_added(ri)<EOL><DEDENT>self.router_info[router_id] = ri<EOL>
Operations when a router is added.

        Create a new RouterInfo object for this router and add it to the
        service helpers router_info dictionary.  Then `router_added()` is
        called on the device driver.

        :param router_id: id of the router
        :param router: router dict
        :return: None