def create_os_out_nwk(self, tenant_id, fw_dict, is_fw_virt=False):
tenant_name = fw_dict.get('<STR_LIT>')<EOL>try:<EOL><INDENT>net, subnet = self._create_os_nwk(tenant_id, tenant_name, "<STR_LIT>",<EOL>is_fw_virt=is_fw_virt)<EOL>if net is None or subnet is None:<EOL><INDENT>return False<EOL><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>return False<EOL><DEDENT>ret = fw_const.OS_OUT_NETWORK_CREATE_SUCCESS<EOL>net_dict = self.retrieve_dcnm_net_info(tenant_id, "<STR_LIT>")<EOL>subnet_dict = self.retrieve_dcnm_subnet_info(tenant_id, "<STR_LIT>")<EOL>if not net_dict or not subnet_dict:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT>': len(net_dict), '<STR_LIT>': len(subnet_dict)})<EOL>ret = fw_const.OS_OUT_NETWORK_CREATE_FAIL<EOL><DEDENT>self.store_net_fw_db(tenant_id, net, net_dict, subnet_dict,<EOL>"<STR_LIT>", '<STR_LIT>', os_status=ret)<EOL>return True<EOL>
Create the Openstack OUT network and stores the values in DB.