# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1204836759 28800
# Node ID 5419b7f856beb54c2f39a50f989a5faf702d4bef
# Parent eb68bdbdf6ea6b596ceefd72a5547dfa65b27225
Specify default TransportType in VSMigrationSettingData instance.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r eb68bdbdf6ea -r 5419b7f856be 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 eb68bdbdf6ea -r 5419b7f856be 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_UNIX = 5,
+ CIM_MIGRATE_URI_TCP = 6,
+} transport_type;
+
CMPIStatus get_migration_sd(const CMPIObjectPath *ref,
CMPIInstance **_inst,
const CMPIBroker *broker,