Skip to content

Commit 1e1de55

Browse files
Alena Prokharchykchaturvedia
authored andcommitted
CS-18283: 2.2.x to 4.2 upgrade - corrected the Service Provider name for the Network offeirng that can be used in VPC (from VirtualRouter to VpcVirtualRouter)
(cherry picked from commit df52280) Signed-off-by: animesh <animesh@apache.org>
1 parent 8222eae commit 1e1de55

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎server/src/com/cloud/network/NetworkManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ public boolean configure(final String name, final Map<String, Object> params) th
13541354
Map<Network.Service, Set<Network.Provider>> defaultVPCOffProviders =
13551355
new HashMap<Network.Service, Set<Network.Provider>>();
13561356
defaultProviders.clear();
1357-
defaultProviders.add(Network.Provider.VirtualRouter);
1357+
defaultProviders.add(Network.Provider.VPCVirtualRouter);
13581358
defaultVPCOffProviders.put(Service.Dhcp, defaultProviders);
13591359
defaultVPCOffProviders.put(Service.Dns, defaultProviders);
13601360
defaultVPCOffProviders.put(Service.UserData, defaultProviders);

‎setup/db/db/schema-410to420.sql‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,3 +2178,7 @@ CREATE VIEW `cloud`.`data_center_view` AS
21782178
`cloud`.`dedicated_resources` ON data_center.id = dedicated_resources.data_center_id
21792179
left join
21802180
`cloud`.`affinity_group` ON dedicated_resources.affinity_group_id = affinity_group.id;
2181+
2182+
2183+
2184+
UPDATE `cloud`.`ntwk_offering_service_map` SET Provider='VpcVirtualRouter' WHERE network_offering_id IN (SELECT id from `cloud`.`network_offerings` WHERE name IN ('DefaultIsolatedNetworkOfferingForVpcNetworks', 'DefaultIsolatedNetworkOfferingForVpcNetworksNoLB'));

0 commit comments

Comments
 (0)