]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix DVR regression for ofagent
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Fri, 11 Jul 2014 00:15:58 +0000 (09:15 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Fri, 18 Jul 2014 05:51:20 +0000 (14:51 +0900)
commit8e31122d36ce5c9d367696921ed92c50cb062b5f
tree49f9404bd57fa8981c6b956d2fb7972545ed7a22
parent68713c94ee6f8e02f4b967ab943549d89b3c4261
Fix DVR regression for ofagent

Background:
    ML2 plugin sometimes uses truncated port uuids.
    For example, in the case of ofagent and linuxbridge,
    if port id is 804ceaa1-0e3e-11e4-b537-08606e7f74e7,
    an agent would send "tap804ceaa1-0e" to the plugin.
    ML2 plugin's _device_to_port_id() would restore it to
    "804ceaa1-0e".  While it's still truncated, ML2 plugin's
    get_port() handles that by using "startswith".

The recently merged DVR change (https://review.openstack.org/#/c/102332/)
assumes that port_id is always a complete uuid (it's the case
for openvswitch) and fails to handle the above mentioned case.
This commit fixes the regression.

Change-Id: I9c0845be606969068ab5d13c0165e76760378500
Closes-Bug: #1343750
neutron/plugins/ml2/plugin.py
neutron/plugins/ml2/rpc.py