Add additional pillar in Sl_Vip
Change-Id: I4c655a0888ea8203c3c84cbf1d616afe4579c23e
diff --git a/tcp_tests/managers/sl_manager.py b/tcp_tests/managers/sl_manager.py
index 5c1b3a1..5bc5f36 100644
--- a/tcp_tests/managers/sl_manager.py
+++ b/tcp_tests/managers/sl_manager.py
@@ -57,6 +57,15 @@
sl_vip_ip = set([ip
for item in sl_vip_address_pillars
for node, ip in item.items() if ip])
+ if not sl_vip_ip:
+
+ pillar = ('keepalived:cluster:instance'
+ ':stacklight_monitor_vip:address')
+ sl_vip_address_pillars = self._salt.get_pillar(tgt=tgt,
+ pillar=pillar)
+ sl_vip_ip = set([ip
+ for item in sl_vip_address_pillars
+ for node, ip in item.items() if ip])
assert len(sl_vip_ip) == 1, (
"SL VIP not found or found more than one SL VIP in pillars:{0}, "
"expected one!").format(sl_vip_ip)