]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ofagent: Handle device name prefixes other than "tap"
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Thu, 10 Jul 2014 08:36:43 +0000 (17:36 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Mon, 14 Jul 2014 07:36:03 +0000 (16:36 +0900)
commitf676d9215958b1af1105d4ff4671ce6cefd83eb7
treec77ffb68d923205c9e71c60585a59b61fdd9dca5
parent66abc6e5392047d4919a95cbafc9282f6a14c684
ofagent: Handle device name prefixes other than "tap"

This fixes regressions in commit 9d13ea884bff749b3975acb5eb5630e5aca4a665.

Handle device name prefixes other than "tap".
For example, nova hybrid interface driver uses "qvo" prefix.

Also, ignore non neutron ports correctly.  For example, veth pairs
used to connect physical bridges.

Closes-Bug: #1341465
Change-Id: I1d71c8a2cf8c2f71f0dbcfb54c9b347e24c03562
neutron/plugins/ofagent/agent/ofa_neutron_agent.py
neutron/plugins/ofagent/agent/ports.py
neutron/tests/unit/ofagent/test_ofa_neutron_agent.py
neutron/tests/unit/ofagent/test_ofa_ports.py