]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
OVSAgentTestFramework: Remove _bind_ports
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Thu, 10 Sep 2015 02:58:46 +0000 (11:58 +0900)
committerYAMAMOTO Takashi <yamamoto@midokura.com>
Thu, 10 Sep 2015 03:00:16 +0000 (12:00 +0900)
As it isn't used anymore.

Related-bug: #1475498
Change-Id: I33cf1b41d77b39b8f28f1809d3c7d5a8457e2718

neutron/tests/functional/agent/l2/base.py

index ae6182e0586e273a0b80079628baf0ae740937b3..ef3779dd74b1bdfa26f4c46b07d414ab2b650947 100644 (file)
@@ -137,19 +137,6 @@ class OVSAgentTestFramework(base.BaseOVSLinuxTestCase):
 
         self.addCleanup(stop_agent, agent, t)
 
-    def _bind_ports(self, ports, network, agent):
-        devices = []
-        for port in ports:
-            dev = OVSAgentTestFramework._get_device_details(port, network)
-            vif_name = port.get('vif_name')
-            vif_id = uuidutils.generate_uuid(),
-            vif_port = ovs_lib.VifPort(
-                vif_name, "%s" % vif_id, 'id-%s' % vif_id,
-                port.get('mac_address'), agent.int_br)
-            dev['vif_port'] = vif_port
-            devices.append(dev)
-            agent._bind_devices(devices)
-
     def _create_test_port_dict(self):
         return {'id': uuidutils.generate_uuid(),
                 'mac_address': utils.get_random_mac(