summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/client
diff options
context:
space:
mode:
authorDan Klein <danklei@cisco.com>2015-09-22 13:56:49 +0300
committerDan Klein <danklei@cisco.com>2015-09-22 13:56:49 +0300
commitb3ac7facbbbc4815388298534fdfdd161ce89534 (patch)
tree23e684eb24f764ccc39caae1fe487a0877145c5a /scripts/automation/trex_control_plane/client
parent2965b8f7e7ca924af9ce6d30b2c0b586ec3e21c5 (diff)
updated packet builder and stateless client modules
Diffstat (limited to 'scripts/automation/trex_control_plane/client')
-rw-r--r--scripts/automation/trex_control_plane/client/trex_stateless_client.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/automation/trex_control_plane/client/trex_stateless_client.py b/scripts/automation/trex_control_plane/client/trex_stateless_client.py
index 322d7319..12f6eff6 100644
--- a/scripts/automation/trex_control_plane/client/trex_stateless_client.py
+++ b/scripts/automation/trex_control_plane/client/trex_stateless_client.py
@@ -33,10 +33,10 @@ class CTRexStatelessClient(object):
class CStream(object):
"""docstring for CStream"""
def __init__(self):
- super(CStream, self).__init__()
+ super(CTRexStatelessClient.CStream, self).__init__()
self.packet = CTRexPktBuilder()
- self.rx_stats = CRxStats()
- self.mode = CTxMode()
+ self.rx_stats = CTRexStatelessClient.CRxStats()
+ self.mode = CTRexStatelessClient.CTxMode()
self.isg
self._next_stream = -1
self._self_start
@@ -54,7 +54,7 @@ class CTRexStatelessClient(object):
def self_start(self):
return self._self_start
- @enabled.setter
+ @self_start.setter
def self_start(self, bool_value):
self._self_start = bool(bool_value)
@@ -62,7 +62,7 @@ class CTRexStatelessClient(object):
def next_stream(self):
return self._next_stream
- @enabled.setter
+ @next_stream.setter
def next_stream(self, value):
self._next_stream = int(bool_value)
@@ -75,7 +75,7 @@ class CTRexStatelessClient(object):
"packet":self.packet.dump_pkt(),
"mode":self.mode.dump(),
"vm":self.packet.dump_vm_instructions(), # TODO - add this method to packet builder module
- "rx_stats":self.rx_stats.dump()})
+ "rx_stats":self.rx_stats.dump()}
class CRxStats(object):
@@ -112,7 +112,7 @@ class CTRexStatelessClient(object):
return {k:v
for k,v in self._rx_dict.items()
if v
- })
+ }
class CTxMode(object):
"""docstring for CTxMode"""