Merge "vPE Sample VNF is missing in the installation scripts"
[yardstick.git] / yardstick / network_services / vnf_generic / vnf / tg_ping.py
index 9cd9f25..a989543 100644 (file)
@@ -14,7 +14,6 @@
 """ PING acts as traffic generation and vnf definitions based on IETS Spec """
 
 from __future__ import absolute_import
-from __future__ import print_function
 import logging
 import re
 
@@ -114,10 +113,6 @@ class PingTrafficGen(SampleVNFTrafficGen):
                                              resource_helper_type)
         self._result = {}
 
-    def scale(self, flavor=""):
-        """ scale vnf-based on flavor input """
-        pass
-
     def _check_status(self):
         return self._tg_process.is_alive()
 
@@ -127,22 +122,10 @@ class PingTrafficGen(SampleVNFTrafficGen):
             "packets_received": 0,
             "rtt": 0,
         }
+        self.setup_helper.setup_vnf_environment()
         intf = self.vnfd_helper.interfaces[0]["virtual-interface"]
         self.resource_helper.cmd_kwargs = {
             'target_ip': IPv4Interface(intf["dst_ip"]).ip.exploded,
             'local_ip': IPv4Interface(intf["local_ip"]).ip.exploded,
             'local_if_name': intf["local_iface_name"].split('/')[0],
         }
-
-        self.setup_helper.setup_vnf_environment()
-
-    def wait_for_instantiate(self):
-        pass
-
-    def listen_traffic(self, traffic_profile):
-        """ Not needed for ping
-
-        :param traffic_profile:
-        :return:
-        """
-        pass