mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
Fix failure in validating IP address in case of multiple Management Servers (#4507)
* Fix failure in validating IP address in case of multiple Management Servers * refactor code Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
This commit is contained in:
parent
83ae6d7c01
commit
837372488f
@ -2587,8 +2587,10 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
|
||||
if (_inSystemVM) {
|
||||
_localgw = (String)params.get("localgw");
|
||||
if (_localgw != null) { // can only happen inside service vm
|
||||
String mgmtHost = (String)params.get("host");
|
||||
addRouteToInternalIpOrCidr(_localgw, _eth1ip, _eth1mask, mgmtHost);
|
||||
String mgmtHosts = (String)params.get("host");
|
||||
for (final String mgmtHost : mgmtHosts.split(",")) {
|
||||
addRouteToInternalIpOrCidr(_localgw, _eth1ip, _eth1mask, mgmtHost);
|
||||
}
|
||||
|
||||
String internalDns1 = (String)params.get("internaldns1");
|
||||
if (internalDns1 == null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user