diff --git a/cloud.spec b/cloud.spec index 3d03ea82383..50e5eccd9f2 100644 --- a/cloud.spec +++ b/cloud.spec @@ -532,6 +532,7 @@ fi %{_datadir}/%{name}/setup/create-schema.sql %{_datadir}/%{name}/setup/server-setup.sql %{_datadir}/%{name}/setup/templates.*.sql +%{_datadir}/%{name}/setup/templates.sql %{_datadir}/%{name}/setup/deploy-db-dev.sh %{_datadir}/%{name}/setup/server-setup.xml %{_datadir}/%{name}/setup/data-20to21.sql diff --git a/server/src/com/cloud/api/commands/ListTemplatesCmd.java b/server/src/com/cloud/api/commands/ListTemplatesCmd.java index fad73d1f31f..deeea51f129 100644 --- a/server/src/com/cloud/api/commands/ListTemplatesCmd.java +++ b/server/src/com/cloud/api/commands/ListTemplatesCmd.java @@ -58,7 +58,7 @@ public class ListTemplatesCmd extends BaseCmd { s_properties.add(new Pair(BaseCmd.Properties.PAGE, Boolean.FALSE)); s_properties.add(new Pair(BaseCmd.Properties.PAGESIZE, Boolean.FALSE)); s_properties.add(new Pair(BaseCmd.Properties.ZONE_ID, Boolean.FALSE)); - s_properties.add(new Pair(BaseCmd.Properties.HYPERVISOR_TYPE, Boolean.FALSE)); + s_properties.add(new Pair(BaseCmd.Properties.HYPERVISOR, Boolean.FALSE)); } diff --git a/server/src/com/cloud/server/ConfigurationServerImpl.java b/server/src/com/cloud/server/ConfigurationServerImpl.java index 2ec991371c6..5f09d248f3c 100644 --- a/server/src/com/cloud/server/ConfigurationServerImpl.java +++ b/server/src/com/cloud/server/ConfigurationServerImpl.java @@ -130,11 +130,8 @@ public class ConfigurationServerImpl implements ConfigurationServer { } boolean externalIpAlloator = Boolean.parseBoolean(_configDao.getValue("direct.attach.network.externalIpAllocator.enabled")); - String hyperVisor = _configDao.getValue("hypervisor.type"); - if (hyperVisor.equalsIgnoreCase("KVM") && !externalIpAlloator) { - /*For KVM, it's enabled by default*/ - _configDao.update("direct.attach.network.externalIpAllocator.enabled", "true"); - } + _configDao.update("direct.attach.network.externalIpAllocator.enabled", "true"); + // Save Direct Networking service offerings _configMgr.createServiceOffering(User.UID_SYSTEM, "Small Instance, Direct Networking", 1, 512, 500, "Small Instance, Direct Networking, $0.05 per hour", false, false, false, null);