Dns bug fixes related to usernet ip.
This commit is contained in:
parent
17c05b7656
commit
aace21ae5a
@ -52,10 +52,12 @@ class DnsManager(object):
|
||||
|
||||
"""
|
||||
entry = self.entry_factory.create_entry(instance_id)
|
||||
LOG.debug("Creating entry address %s." % str(entry))
|
||||
if entry:
|
||||
entry.content = content[0]
|
||||
LOG.debug("Creating entry address %s." % str(entry))
|
||||
self.driver.create_entry(entry)
|
||||
else:
|
||||
LOG.debug("Entry address not found for instance %s" % instance_id)
|
||||
|
||||
def delete_instance_entry(self, instance_id, content=None):
|
||||
"""Removes a DNS entry associated to an instance.
|
||||
|
@ -27,6 +27,10 @@ def get_ip_address(addresses):
|
||||
addresses.get('private') is not None and \
|
||||
len(addresses['private']) > 0:
|
||||
return [addr.get('addr') for addr in addresses['private']]
|
||||
if addresses is not None and\
|
||||
addresses.get('usernet') is not None and\
|
||||
len(addresses['usernet']) > 0:
|
||||
return [addr.get('addr') for addr in addresses['usernet']]
|
||||
|
||||
|
||||
def get_volumes(volumes):
|
||||
|
Loading…
x
Reference in New Issue
Block a user