summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py
diff options
context:
space:
mode:
authorLuc Provoost <luc.provoost@intel.com>2017-09-14 16:41:02 +0200
committerDeepak S <deepak.s@linux.intel.com>2017-09-19 22:19:39 -0700
commitbe23f20bcddd63dec506515c1518c995b0f8aa86 (patch)
treef821d376d05f27771d6716d20caa9270df516b92 /VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py
parent71a854fb279a807e9cde9a7afa3a75d843bd69ed (diff)
Splitting the script in 2 parts: createrapid.py and runrapid.py
The split of the scripts is documented in the README file. The VM also runs now devbind.sh with the proper MAC address to bind the dataplane interface with the DPDK poll mode driver. Change-Id: I3e7a6235379dc80530934376c7799ac3396b5325 Luc Provoost <luc.provoost@intel.com> Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py')
-rw-r--r--VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py b/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py
index b384e9f0..7438d4d6 100644
--- a/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py
+++ b/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py
@@ -198,6 +198,12 @@ class prox_sock(object):
def set_random(self, cores, task, offset, mask, length):
self._send('set random %s %s %s %s %s' % (','.join(map(str, cores)), task, offset, mask, length))
+ def set_size(self, cores, task, pkt_size):
+ self._send('pkt_size %s %s %s' % (','.join(map(str, cores)), task, pkt_size))
+
+ def set_value(self, cores, task, offset, value, length):
+ self._send('set value %s %s %s %s %s' % (','.join(map(str, cores)), task, offset, value, length))
+
def _send(self, cmd):
"""Append LF and send command to the PROX instance."""
if self._sock is None: