aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSridhar K. N. Rao <sridhar.rao@spirent.com>2021-06-02 19:11:18 +0530
committerSridhar K. N. Rao <sridhar.rao@spirent.com>2021-06-15 21:34:48 +0530
commit8137692dd94e112943dcc576470f4b361fbd8c5c (patch)
tree7e1b60be919d8d1e8ce9821191a23aa8d8c1c758 /core
parent300d9f201aba1b8e30387138acaba79a72502d82 (diff)
WIP:Infrastructure for supporting more K8S Tests.
This patch add multiple changes to ViNePerf to support following tests. 1. External virtual switch - not managed by Vineperf. 2. CNI not based on virtual switch 3. Fixed bugs after successful testing. 4. Pylint issues fixed 4. Fix some license-content and comments Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com> Change-Id: Ie01735f99c0687cc812eae8e67ee2353347924f2
Diffstat (limited to 'core')
-rw-r--r--core/pod_controller.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/core/pod_controller.py b/core/pod_controller.py
index 8bc91ec4..109daa43 100644
--- a/core/pod_controller.py
+++ b/core/pod_controller.py
@@ -16,7 +16,7 @@
import logging
import pexpect
-#from conf import settings
+from conf import settings
from pods.pod.pod import IPod
class PodController():
@@ -44,12 +44,15 @@ class PodController():
self._pod_class = pod_class
self._deployment = deployment.lower()
self._pods = []
- if self._deployment == 'p2p':
+ if 'pcp' in self._deployment or 'p2p' in self._deployment:
pod_number = 1
-
+ elif 'pccp'in self._deployment:
+ pod_number = 2
+ print("POD COUNTING DONE")
+ settings.setValue('POD_COUNT', pod_number)
+ # we will have single controller for all pods
if pod_number:
- self._pods = [pod_class() for _ in range(pod_number)]
-
+ self._pods.append(pod_class())
self._logger.debug('Initializing the pod')
def get_pods(self):