# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1204836759 28800
# Node ID d7d6fb7facb7d6ca113cb1a43a225f1f12754713
# Parent f0ec7a80ad470f7232b675c6e0c72adcfb4445f3
Specify default TransportType in VSMigrationSettingData instance.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r f0ec7a80ad47 -r d7d6fb7facb7 src/Virt_VSMigrationSettingData.c
--- a/src/Virt_VSMigrationSettingData.c Thu Mar 06 12:52:19 2008 -0800
+++ b/src/Virt_VSMigrationSettingData.c Thu Mar 06 12:52:39 2008 -0800
@@ -40,6 +40,7 @@ static CMPIStatus set_properties(const C
CMPIStatus s;
uint16_t type = CIM_MIGRATE_LIVE;
uint16_t priority = 0; /* Use default priority */
+ uint16_t transport = CIM_MIGRATE_URI_SSH;
CMSetProperty(inst, "MigrationType",
(CMPIValue *)&type, CMPI_uint16);
@@ -47,6 +48,8 @@ static CMPIStatus set_properties(const C
CMSetProperty(inst, "Priority",
(CMPIValue *)&priority, CMPI_uint16);
+ CMSetProperty(inst, "TransportType",
+ (CMPIValue *)&transport, CMPI_uint16);
cu_statusf(broker, &s,
CMPI_RC_OK,
diff -r f0ec7a80ad47 -r d7d6fb7facb7 src/Virt_VSMigrationSettingData.h
--- a/src/Virt_VSMigrationSettingData.h Thu Mar 06 12:52:19 2008 -0800
+++ b/src/Virt_VSMigrationSettingData.h Thu Mar 06 12:52:39 2008 -0800
@@ -25,6 +25,14 @@ enum {CIM_MIGRATE_OTHER = 1,
CIM_MIGRATE_RESTART = 4,
} migration_type;
+enum {CIM_MIGRATE_URI_OTHER = 1,
+ CIM_MIGRATE_URI_SSH = 2,
+ CIM_MIGRATE_URI_TLS = 3,
+ CIM_MIGRATE_URI_TLS_STRICT = 4,
+ CIM_MIGRATE_URI_TCP = 5,
+ CIM_MIGRATE_URI_UNIX = 6,
+} transport_type;
+
CMPIStatus get_migration_sd(const CMPIObjectPath *ref,
CMPIInstance **_inst,
const CMPIBroker *broker,