]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Pass correct port ID back to RPC caller
authorKevin Benton <blak111@gmail.com>
Mon, 30 Mar 2015 18:49:40 +0000 (11:49 -0700)
committerKevin Benton <kevinbenton@buttewifi.com>
Tue, 14 Apr 2015 18:39:22 +0000 (18:39 +0000)
commit76fa87e12eb69c962dd85a3399d3dbce0c5a3271
tree47708438a77176b21acbe286e6ebee79ec0a9ec8
parent9debd891ff315cd94f88101e91728db29269b997
Pass correct port ID back to RPC caller

The previous response to get_device_details calls was returning
whatever the caller requested as the port_id in the response.
This was only correct in the case where the port_id was used
directly. In cases where device names were passed in, there was
no way to retrieve the full port ID.

This corrects that behavior by using the port ID from the database
and adds tests to ensure the behavior remains correct.

Closes-Bug: #1443714
Change-Id: Ibfc7b6659a29e892dfe6e83bd9340feb40e920dd
neutron/plugins/ml2/rpc.py
neutron/tests/unit/plugins/ml2/drivers/l2pop/test_mech_driver.py