diff options
author | Martin Klozik <martinx.klozik@intel.com> | 2016-10-04 07:11:46 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-04 07:11:46 +0000 |
commit | e3c52e2eeacc1ec995b9492ce8315fb166886fdd (patch) | |
tree | c217122cc7dc6fcbb96399c9ad61f3b106010742 /core/component_factory.py | |
parent | fc8f6e0cc0d688eda3f36ff848cda7a33d6607e4 (diff) | |
parent | 1e1138cdc36ab308568e51314d967f7d13bdacc5 (diff) |
Merge "pkt_gen: Spirent Testcenter RFC 2889 Support"
Diffstat (limited to 'core/component_factory.py')
-rw-r--r-- | core/component_factory.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/component_factory.py b/core/component_factory.py index 7f453bd2..ef7ba86f 100644 --- a/core/component_factory.py +++ b/core/component_factory.py @@ -16,6 +16,7 @@ """ from core.traffic_controller_rfc2544 import TrafficControllerRFC2544 +from core.traffic_controller_rfc2889 import TrafficControllerRFC2889 from core.vswitch_controller_clean import VswitchControllerClean from core.vswitch_controller_p2p import VswitchControllerP2P from core.vswitch_controller_pxp import VswitchControllerPXP @@ -47,7 +48,10 @@ def create_traffic(traffic_type, trafficgen_class): :param trafficgen_class: Reference to traffic generator class to be used. :return: A new ITrafficController """ - return TrafficControllerRFC2544(trafficgen_class) + if traffic_type.lower().startswith('rfc2889'): + return TrafficControllerRFC2889(trafficgen_class) + else: + return TrafficControllerRFC2544(trafficgen_class) def create_vswitch(deployment_scenario, vswitch_class, traffic, |