]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix _device_to_port_id for non-tap devices
authorKevin Benton <blak111@gmail.com>
Mon, 30 Mar 2015 18:29:44 +0000 (11:29 -0700)
committerKevin Benton <kevinbenton@buttewifi.com>
Wed, 29 Apr 2015 14:53:43 +0000 (14:53 +0000)
commit3e4e932a4d9dbfac908cf03c221b350e645d8b17
tree3e3b7ac8822e0aa7e839405e9d332d416c77531d
parent84d2638579dc92b8530ccc3e963ce0e80c36461e
Fix _device_to_port_id for non-tap devices

This adjusts the _device_to_port_id function in ML2
to recognize other interfaces that belong to Neutron
under different name prefixes.

Adds unit tests to achieve full converage of _device_to_port_id
method.

Closes-Bug: #1443710
Change-Id: I80284ee67e5876cf5689e49e1592ca1351ae5fa1
neutron/agent/l3/dvr_snat_ns.py
neutron/common/constants.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/plugins/ml2/test_plugin.py