Enable security groups in basic zones only

(cherry picked from commit 7ea0ace472f863374c9a0b8559065a90190e6f61)
This commit is contained in:
Prasanna Santhanam 2012-02-18 19:59:57 +05:30
parent 3b226f1928
commit 7f72de368d

View File

@ -179,7 +179,7 @@ class deployDataCenters():
vrconfigresponse = \ vrconfigresponse = \
self.apiClient.configureVirtualRouterElement(vrconfig) self.apiClient.configureVirtualRouterElement(vrconfig)
if zone.securitygroupenabled: if zone.networktype == "Basic" and zone.securitygroupenabled:
sgprovider = configGenerator.provider() sgprovider = configGenerator.provider()
sgprovider.name = "SecurityGroupProvider" sgprovider.name = "SecurityGroupProvider"
zone.providers.append(sgprovider) zone.providers.append(sgprovider)