From be23f20bcddd63dec506515c1518c995b0f8aa86 Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Thu, 14 Sep 2017 16:41:02 +0200 Subject: 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 Signed-off-by: Deepak S --- VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py') 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: -- cgit 1.2.3-korg