def create_os_dummy_rtr(self, tenant_id, fw_dict, is_fw_virt=False):
res = fw_const.OS_DUMMY_RTR_CREATE_SUCCESS<EOL>tenant_name = fw_dict.get('<STR_LIT>')<EOL>try:<EOL><INDENT>rtr_id = fw_dict.get('<STR_LIT>')<EOL>if rtr_id is None:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>return False<EOL><DEDENT>if is_fw_virt:<EOL><INDENT>net_id = subnet_id = None<EOL><DEDENT>else:<EOL><INDENT>net_id, subnet_id = (<EOL>self._attach_dummy_intf_rtr(tenant_id, tenant_name,<EOL>rtr_id))<EOL>if net_id is None or subnet_id is None:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>return False<EOL><DEDENT><DEDENT><DEDENT>except Exception as exc:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT>': tenant_id, '<STR_LIT>': str(exc)})<EOL>res = fw_const.OS_DUMMY_RTR_CREATE_FAIL<EOL><DEDENT>self.store_fw_db_router(tenant_id, net_id, subnet_id, rtr_id, res)<EOL>return True<EOL>
Create the dummy interface and attach it to router.

        Attach the dummy interface to the Openstack router and store the
        info in DB.