diff options
author | Martin Klozik <martinx.klozik@intel.com> | 2017-04-20 08:35:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-04-20 08:35:17 +0000 |
commit | 0498b5fb3893e4331191808e3501d00b684af9b4 (patch) | |
tree | 500ccecc8438d7b23dbfc7cd8eadca115868b3e3 /tools/pkt_gen/ixnet/ixnet.py | |
parent | e64800b3cf4cbfd89996cb56f1899b047f6cbdbc (diff) | |
parent | 83e0a9fb40ba17a2d617e03d1d67938f568d5e65 (diff) |
Merge "ixia: Support of 1 NIC connection to trafficgen"
Diffstat (limited to 'tools/pkt_gen/ixnet/ixnet.py')
-rwxr-xr-x | tools/pkt_gen/ixnet/ixnet.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/pkt_gen/ixnet/ixnet.py b/tools/pkt_gen/ixnet/ixnet.py index 9a763104..972fa331 100755 --- a/tools/pkt_gen/ixnet/ixnet.py +++ b/tools/pkt_gen/ixnet/ixnet.py @@ -174,7 +174,7 @@ class IxNet(trafficgen.ITrafficGenerator): return output.split() - def connect(self): + def configure(self): """Configure system for IxNetwork. """ self._cfg = { @@ -194,7 +194,10 @@ class IxNet(trafficgen.ITrafficGenerator): self._logger.debug('IXIA configuration configuration : %s', self._cfg) - return self + def connect(self): + """Connect to IxNetwork - nothing to be done here + """ + pass def disconnect(self): """Disconnect from Ixia chassis. @@ -211,6 +214,7 @@ class IxNet(trafficgen.ITrafficGenerator): def start_cont_traffic(self, traffic=None, duration=30): """Start transmission. """ + self.configure() self._bidir = traffic['bidir'] self._params = {} @@ -264,6 +268,7 @@ class IxNet(trafficgen.ITrafficGenerator): lossrate=0.0): """Start transmission. """ + self.configure() self._bidir = traffic['bidir'] self._params = {} @@ -401,6 +406,7 @@ class IxNet(trafficgen.ITrafficGenerator): lossrate=0.0): """Start transmission. """ + self.configure() self._bidir = traffic['bidir'] self._params = {} |