aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2019-08-06 21:46:13 +0200
committerJan Gelety <jgelety@cisco.com>2019-08-07 13:51:28 +0000
commitfc1ad1d843d554c42508c06a5aeb71badd814207 (patch)
tree2a3447ff79c479b2331f1f8a0a47ebc1107ddf22 /resources/libraries
parentfb2fb651fa600a94c2e02891db2676c66490e875 (diff)
FIX: Remove PAPI_MAX_API_BULK
- it's not needed anymore as PapiSocketExecutor is used Change-Id: Ia9fad1d18991821d14e9261d27f7f26fca03c14a Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries')
-rw-r--r--resources/libraries/python/Constants.py3
-rw-r--r--resources/libraries/python/IPUtil.py2
-rw-r--r--resources/libraries/python/TestConfig.py6
3 files changed, 0 insertions, 11 deletions
diff --git a/resources/libraries/python/Constants.py b/resources/libraries/python/Constants.py
index ce48863f58..d8550ab27a 100644
--- a/resources/libraries/python/Constants.py
+++ b/resources/libraries/python/Constants.py
@@ -106,9 +106,6 @@ class Constants(object):
# Equivalent to ~0 used in vpp code
BITWISE_NON_ZERO = 0xffffffff
- # Maximum number of API calls per PapiExecutor execution
- PAPI_MAX_API_BULK = 250
-
# Mapping from NIC name to its bps limit.
# TODO: Implement logic to lower limits to TG NIC or software. Or PCI.
NIC_NAME_TO_LIMIT = {
diff --git a/resources/libraries/python/IPUtil.py b/resources/libraries/python/IPUtil.py
index f88e234a1a..901d2ed7f7 100644
--- a/resources/libraries/python/IPUtil.py
+++ b/resources/libraries/python/IPUtil.py
@@ -593,8 +593,6 @@ class IPUtil(object):
IPUtil.union_addr(net_addr + i)
history = False if 1 < i < kwargs.get('count', 1) else True
papi_exec.add(cmd, history=history, **args)
- if i > 0 and i % Constants.PAPI_MAX_API_BULK == 0:
- papi_exec.get_replies(err_msg)
papi_exec.get_replies(err_msg)
@staticmethod
diff --git a/resources/libraries/python/TestConfig.py b/resources/libraries/python/TestConfig.py
index 98e18181a4..787f27b161 100644
--- a/resources/libraries/python/TestConfig.py
+++ b/resources/libraries/python/TestConfig.py
@@ -188,8 +188,6 @@ class TestConfig(object):
papi_exec.add(cmd1, history=history, **args1).\
add(cmd2, history=history, **args2).\
add(cmd3, history=history, **args3)
- if i > 0 and i % (Constants.PAPI_MAX_API_BULK / 3) == 0:
- papi_exec.get_replies(err_msg)
papi_exec.get_replies()
return vxlan_count
@@ -296,8 +294,6 @@ class TestConfig(object):
history = False if 1 < i < vxlan_count else True
papi_exec.add(cmd, history=history, **args1). \
add(cmd, history=history, **args2)
- if i > 0 and i % (Constants.PAPI_MAX_API_BULK / 2) == 0:
- papi_exec.get_replies(err_msg)
papi_exec.add(cmd, **args1).add(cmd, **args2)
papi_exec.get_replies()
@@ -420,6 +416,4 @@ class TestConfig(object):
add(cmd2, history=history, **args2). \
add(cmd3, history=history, **args3). \
add(cmd3, history=history, **args4)
- if i > 0 and i % (Constants.PAPI_MAX_API_BULK / 4) == 0:
- papi_exec.get_replies(err_msg)
papi_exec.get_replies()