X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=core%2Fcomponent_factory.py;h=c101f5d2da710eb8cc0fd1eef62beca2c494a21b;hb=refs%2Fchanges%2F66%2F1066%2F5;hp=eb963d6f5deea0a421d7f8d73fdc0dec1ce89f88;hpb=3a61d8b18d966a940e40ca403ce8ed2b05c44eda;p=vswitchperf.git diff --git a/core/component_factory.py b/core/component_factory.py index eb963d6f..c101f5d2 100644 --- a/core/component_factory.py +++ b/core/component_factory.py @@ -38,14 +38,13 @@ def create_traffic(traffic_type, trafficgen_class): traffic_types: 'rfc2544_throughput' - :param traffic_type: Name of traffic type + :param traffic_type: Name of traffic type :param trafficgen_class: Reference to traffic generator class to be used. :return: A new ITrafficController """ - #TODO - full mapping from all traffic_types to - #correct controller class return TrafficControllerRFC2544(trafficgen_class) + def create_vswitch(deployment_scenario, vswitch_class): """Return a new IVSwitchController for the deployment_scenario.