mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Fix restarting VPC
This commit is contained in:
parent
0be56a5ff6
commit
da53a5502e
@ -39,7 +39,12 @@ class CsGuestNetwork:
|
||||
if not self.guest:
|
||||
return self.config.get_dns()
|
||||
# Can a router provide dhcp but not dns?
|
||||
return [ self.data['router_guest_gateway'] ] + self.data['dns'].split(',')
|
||||
if 'dns' in self.data:
|
||||
return [ self.data['router_guest_gateway'] ] + self.data['dns'].split(',')
|
||||
elif "router_guest_gateway" in self.data:
|
||||
return [ self.data['router_guest_gateway'] ]
|
||||
else:
|
||||
return [""]
|
||||
|
||||
def set_dns(self, val):
|
||||
self.data['dns'] = val
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user