From: YAMAMOTO Takashi Date: Thu, 10 Sep 2015 02:58:46 +0000 (+0900) Subject: OVSAgentTestFramework: Remove _bind_ports X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=cd0ba162ae1bbbb628a954940dd65130c0c0f672;p=openstack-build%2Fneutron-build.git OVSAgentTestFramework: Remove _bind_ports As it isn't used anymore. Related-bug: #1475498 Change-Id: I33cf1b41d77b39b8f28f1809d3c7d5a8457e2718 --- diff --git a/neutron/tests/functional/agent/l2/base.py b/neutron/tests/functional/agent/l2/base.py index ae6182e05..ef3779dd7 100644 --- a/neutron/tests/functional/agent/l2/base.py +++ b/neutron/tests/functional/agent/l2/base.py @@ -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(