mirror of https://github.com/apache/cloudstack.git
Only set L2 Gateway in NSX device if defined
This commit is contained in:
parent
4ac2737754
commit
88774a93e8
|
|
@ -3878,7 +3878,7 @@ class NiciraNvp:
|
|||
|
||||
if l2gatewayserviceuuid:
|
||||
cmd.l2gatewayserviceuuid = l2gatewayserviceuuid
|
||||
else:
|
||||
elif services and 'l2gatewayserviceuuid' in services:
|
||||
cmd.l2gatewayserviceuuid = services['l2gatewayserviceuuid']
|
||||
|
||||
return NiciraNvp(apiclient.addNiciraNvpDevice(cmd).__dict__)
|
||||
|
|
@ -4060,9 +4060,9 @@ class VpcOffering:
|
|||
@classmethod
|
||||
def create(cls, apiclient, services):
|
||||
"""Create vpc offering"""
|
||||
|
||||
|
||||
import logging
|
||||
|
||||
|
||||
cmd = createVPCOffering.createVPCOfferingCmd()
|
||||
cmd.name = "-".join([services["name"], random_gen()])
|
||||
cmd.displaytext = services["displaytext"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue