diff options
author | ahothan <ahothan@cisco.com> | 2018-01-16 12:46:21 -0800 |
---|---|---|
committer | ahothan <ahothan@cisco.com> | 2018-01-16 12:46:21 -0800 |
commit | 02c8ed97e27b6e417945d27d4d3c2ab8e7dbfa7e (patch) | |
tree | c6335c42266f70c77b7fa2560d5b932040e66d9a /nfvbench/traffic_gen/dummy.py | |
parent | b481ad4a6c6b98cac760b12e4190f9540869e673 (diff) |
[NFVBENCH-62] Add support for non-openstack environments
Add Unit test to validate non-openstack with dummy traffic gen
Change-Id: I359ddb7d43169f706d8262842af975d5b4675a3a
Signed-off-by: ahothan <ahothan@cisco.com>
Diffstat (limited to 'nfvbench/traffic_gen/dummy.py')
-rw-r--r-- | nfvbench/traffic_gen/dummy.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nfvbench/traffic_gen/dummy.py b/nfvbench/traffic_gen/dummy.py index b43030f..6f57f4d 100644 --- a/nfvbench/traffic_gen/dummy.py +++ b/nfvbench/traffic_gen/dummy.py @@ -30,6 +30,7 @@ class DummyTG(AbstractTrafficGenerator): self.l2_frame_size = 0 self.duration_sec = self.config.duration_sec self.intf_speed = config.generator_config.intf_speed + self.set_response_curve() def get_version(self): return "0.1" @@ -154,6 +155,9 @@ class DummyTG(AbstractTrafficGenerator): result['total_tx_rate'] = total_tx_pps return result + def get_macs(self): + return ['00.00.00.00.00.01', '00.00.00.00.00.02'] + def clear_stats(self): pass @@ -165,3 +169,9 @@ class DummyTG(AbstractTrafficGenerator): def cleanup(self): pass + + def set_mode(self): + pass + + def resolve_arp(self): + return True |