]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Big Switch: Check for 'id' in port before lookup
authorKevin Benton <blak111@gmail.com>
Tue, 19 Aug 2014 04:49:31 +0000 (21:49 -0700)
committerKevin Benton <blak111@gmail.com>
Tue, 19 Aug 2014 04:52:00 +0000 (21:52 -0700)
commit295efa00081c770a57a5541652d9d3ffd5c1074d
tree4a6dbaa8b35a33c59e726963ff283210e114de59
parent0954a7a0b33e7e56e0fee95b38df3455ab70173a
Big Switch: Check for 'id' in port before lookup

Check for the presence of the 'id' key before trying
to do a lookup based on the value. This is necessary
because a 'fields' param to get_port(s) may exclude
the 'id' field before the host_id lookup.

Closes-Bug: #1358668
Change-Id: If30567d5deaeabd2de6c6287fac7a81695a41cc5
neutron/plugins/bigswitch/plugin.py
neutron/tests/unit/bigswitch/test_restproxy_plugin.py