def create_fw_device(self, tenant_id, fw_id, data):
drvr_dict, mgmt_ip = self.sched_obj.allocate_fw_dev(fw_id)<EOL>if drvr_dict is not None and mgmt_ip is not None:<EOL><INDENT>self.update_fw_db_mgmt_ip(fw_id, mgmt_ip)<EOL>ret = drvr_dict.get('<STR_LIT>').create_fw(tenant_id, data)<EOL>if not ret:<EOL><INDENT>self.sched_obj.deallocate_fw_dev(fw_id)<EOL><DEDENT>return ret<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Creates the Firewall.