From 8a90f3665fbddfd3f1c4894845e15622ab38a628 Mon Sep 17 00:00:00 2001 From: Murali Reddy Date: Tue, 3 May 2011 13:14:00 +0530 Subject: [PATCH] Bug 8391: remove guest.ip.network global config param removing unused global config parameters guest.ip.network and guest.netmask status 8391: resolved fixed --- server/src/com/cloud/configuration/Config.java | 2 -- setup/db/db/schema-224to225.sql | 5 ++++- setup/db/server-setup.xml | 16 ---------------- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/server/src/com/cloud/configuration/Config.java b/server/src/com/cloud/configuration/Config.java index cb733e18071..093eb1f16db 100755 --- a/server/src/com/cloud/configuration/Config.java +++ b/server/src/com/cloud/configuration/Config.java @@ -56,8 +56,6 @@ public enum Config { // Network - GuestIpNetwork("Network", AgentManager.class, String.class, "guest.ip.network", "10.1.1.1", "The network address of the guest virtual network. Virtual machines will be assigned an IP in this subnet.", "privateip"), - GuestNetmask("Network", AgentManager.class, String.class, "guest.netmask", "255.255.255.0", "The netmask of the guest virtual network.", "netmask"), GuestVlanBits("Network", ManagementServer.class, Integer.class, "guest.vlan.bits", "12", "The number of bits to reserve for the VLAN identifier in the guest subnet.", null), //MulticastThrottlingRate("Network", ManagementServer.class, Integer.class, "multicast.throttling.rate", "10", "Default multicast rate in megabits per second allowed.", null), NetworkThrottlingRate("Network", ManagementServer.class, Integer.class, "network.throttling.rate", "200", "Default data transfer rate in megabits per second allowed in network.", null), diff --git a/setup/db/db/schema-224to225.sql b/setup/db/db/schema-224to225.sql index 0dae397975d..463501414bc 100644 --- a/setup/db/db/schema-224to225.sql +++ b/setup/db/db/schema-224to225.sql @@ -35,6 +35,9 @@ ALTER TABLE `cloud`.`secondary_storage_vm` ADD COLUMN `role` varchar(64) NOT NUL INSERT INTO `cloud`.`configuration` (category, instance, component, name, value, description) VALUES ('Network', 'DEFAULT', 'management-server', 'vm.network.throttling.rate', 200, 'Default data transfer rate in megabits per second allowed in user vm\'s default network.'); +DELETE FROM `cloud`.`configuration` where name='guest.ip.network'; +DELETE FROM `cloud`.`configuration` where name='guest.netmask'; + ALTER TABLE `cloud`.`host_pod_ref` ADD COLUMN `removed` datetime COMMENT 'date removed if not null'; ALTER TABLE `cloud`.`host_pod_ref` MODIFY `name` varchar(255); @@ -50,4 +53,4 @@ ALTER TABLE `cloud`.`vm_template` ADD COLUMN `source_template_id` bigint unsigne ALTER TABLE `cloud`.`op_dc_link_local_ip_address_alloc` ADD INDEX `i_op_dc_link_local_ip_address_alloc__pod_id`(`pod_id`); ALTER TABLE `cloud`.`op_dc_link_local_ip_address_alloc` ADD INDEX `i_op_dc_link_local_ip_address_alloc__data_center_id`(`data_center_id`); -ALTER TABLE `cloud`.`op_dc_link_local_ip_address_alloc` ADD INDEX `i_op_dc_link_local_ip_address_alloc__nic_id_reservation_id`(`nic_id`,`reservation_id`); \ No newline at end of file +ALTER TABLE `cloud`.`op_dc_link_local_ip_address_alloc` ADD INDEX `i_op_dc_link_local_ip_address_alloc__nic_id_reservation_id`(`nic_id`,`reservation_id`); diff --git a/setup/db/server-setup.xml b/setup/db/server-setup.xml index 43645a1b5fd..bc30986065e 100755 --- a/setup/db/server-setup.xml +++ b/setup/db/server-setup.xml @@ -168,22 +168,6 @@ --> - - - guest.ip.network - 10.1.1.1 - - - guest.netmask - 255.255.255.0 -