Skip to content

Commit

Permalink
Corredted the Control Data IP selection for k8s snat and fabric forwa…
Browse files Browse the repository at this point in the history
…rding scripts

Change-Id: I9993a55186b6ea3ccca5dc199c03a856f01064a3
Closes-bug: #1773758
  • Loading branch information
pulkitt committed Jun 6, 2018
1 parent c2e50e3 commit afc5534
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
7 changes: 1 addition & 6 deletions scripts/k8s_scripts/test_fabric_forwarding.py
Expand Up @@ -8,12 +8,7 @@ class TestFabricFWD(BaseK8sTest):
@classmethod
def setUpClass(cls):
super(TestFabricFWD, cls).setUpClass()
if cls.inputs.get_service_ip(cls.inputs.bgp_control_ips[0],service="CONTROL"):
cls.ip_to_ping = cls.inputs.get_service_ip(cls.inputs.bgp_control_ips[0],
service="CONTROL")
else:
cls.ip_to_ping = cls.inputs.get_service_ip(cls.inputs.bgp_control_ips[0],
service="CONTROLLER")
cls.ip_to_ping = cls.inputs.bgp_control_ips[0]

@classmethod
def tearDownClass(cls):
Expand Down
7 changes: 1 addition & 6 deletions scripts/k8s_scripts/test_snat.py
Expand Up @@ -8,12 +8,7 @@ class TestSNAT(BaseK8sTest):
@classmethod
def setUpClass(cls):
super(TestSNAT, cls).setUpClass()
if cls.inputs.get_service_ip(cls.inputs.bgp_control_ips[0],service="CONTROL"):
cls.ip_to_ping = cls.inputs.get_service_ip(cls.inputs.bgp_control_ips[0],
service="CONTROL")
else:
cls.ip_to_ping = cls.inputs.get_service_ip(cls.inputs.bgp_control_ips[0],
service="CONTROLLER")
cls.ip_to_ping = cls.inputs.bgp_control_ips[0]

@classmethod
def tearDownClass(cls):
Expand Down
7 changes: 1 addition & 6 deletions serial_scripts/k8s_scripts/test_fabric_forwarding.py
Expand Up @@ -8,12 +8,7 @@ class TestFabricFWDRestarts(BaseK8sTest):
@classmethod
def setUpClass(cls):
super(TestFabricFWDRestarts, cls).setUpClass()
if cls.inputs.get_service_ip(cls.inputs.bgp_control_ips[0],service="CONTROL"):
cls.ip_to_ping = cls.inputs.get_service_ip(cls.inputs.bgp_control_ips[0],
service="CONTROL")
else:
cls.ip_to_ping = cls.inputs.get_service_ip(cls.inputs.bgp_control_ips[0],
service="CONTROLLER")
cls.ip_to_ping = cls.inputs.bgp_control_ips[0]

@classmethod
def tearDownClass(cls):
Expand Down
Expand Up @@ -14,12 +14,7 @@ class TestFabricSNATRestarts(BaseK8sTest):
@classmethod
def setUpClass(cls):
super(TestFabricSNATRestarts, cls).setUpClass()
if cls.inputs.get_service_ip(cls.inputs.bgp_control_ips[0],service="CONTROL"):
cls.ip_to_ping = cls.inputs.get_service_ip(cls.inputs.bgp_control_ips[0],
service="CONTROL")
else:
cls.ip_to_ping = cls.inputs.get_service_ip(cls.inputs.bgp_control_ips[0],
service="CONTROLLER")
cls.ip_to_ping = cls.inputs.bgp_control_ips[0]

@classmethod
def tearDownClass(cls):
Expand Down

0 comments on commit afc5534

Please sign in to comment.