[Core-Library] Fix the way of getting DNS in describe() method
This patch changes the method of getting dns address. Previously dns could be an empty list, if user didn't configured 'default_dns' settings in murano.conf. Now it is taken from already created subnet. Change-Id: I5c6a831738e8d971a12bd81eff42aebc869c9a2e Related-Bug: #1536651
This commit is contained in:
parent
54f813f9c4
commit
275b2d2583
|
@ -152,6 +152,6 @@ Workflow:
|
|||
netName: $.internalNetworkName
|
||||
subnetId: $._internalSubnetworkId
|
||||
cidr: $subnet.cidr
|
||||
dns: $._netExplorer.getDefaultDns()
|
||||
dns: $subnet.dns_nameservers
|
||||
gateway: $subnet.gateway_ip
|
||||
floatingIpNetId: $._externalNetworkId
|
||||
|
|
|
@ -180,7 +180,7 @@ Methods:
|
|||
netId: $.openstackId
|
||||
subnetId: $subnet.id
|
||||
cidr: $subnet.cidr
|
||||
dns: $.dnsNameservers
|
||||
dns: $subnet.dns_nameservers
|
||||
gateway: $subnet.gateway_ip
|
||||
floatingIpNetId: $._getExternalNetId()
|
||||
|
||||
|
|
Loading…
Reference in New Issue