def create_routertype(self, context, routertype):
LOG.debug("<STR_LIT>", routertype)<EOL>rt = routertype['<STR_LIT>']<EOL>with context.session.begin(subtransactions=True):<EOL><INDENT>routertype_db = l3_models.RouterType(<EOL>id=self._get_id(rt),<EOL>tenant_id=rt['<STR_LIT>'],<EOL>name=rt['<STR_LIT:name>'],<EOL>description=rt['<STR_LIT:description>'],<EOL>template_id=rt['<STR_LIT>'],<EOL>ha_enabled_by_default=rt['<STR_LIT>'],<EOL>shared=rt['<STR_LIT>'],<EOL>slot_need=rt['<STR_LIT>'],<EOL>scheduler=rt['<STR_LIT>'],<EOL>driver=rt['<STR_LIT>'],<EOL>cfg_agent_service_helper=rt['<STR_LIT>'],<EOL>cfg_agent_driver=rt['<STR_LIT>'])<EOL>context.session.add(routertype_db)<EOL><DEDENT>return self._make_routertype_dict(routertype_db)<EOL>
Creates a router type.

        Also binds it to the specified hosting device template.