MT#9281 fix b196b6b04f get_all_cluster_set_shared_ip_maps: don't add non shared ips

Change-Id: I8b575e56d4667499843f41dab4a0bc26e9c0e774
changes/52/352/1
Victor Seva 11 years ago
parent 82012b7c08
commit 0e77003df4

@ -28,12 +28,12 @@
theset.ips = [];
FOREACH host IN set_hosts;
NEXT UNLESS blktmp.processed_hosts.$host.defined;
NEXT IF blktmp.processed_hosts.$host.defined;
NEXT UNLESS hosts.$host.role.grep('^' _ argv.type _ '$').size();
peer = hosts.$host.peer;
FOREACH iface IN hosts.$host.interfaces;
NEXT UNLESS hosts.$host.$iface.cluster_sets.grep('^' _ set _ '$').size();
blktmp.processed_hosts.$peer = 1;
theset.ips.push(hosts.$host.$iface.ip);
FOREACH ip IN hosts.$host.$iface.shared_ip;
theset.ips.push(ip);
END;

Loading…
Cancel
Save