]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX: Correct allowed_address_pair return value on create_port
authorAaron Rosen <aaronorosen@gmail.com>
Mon, 8 Sep 2014 18:23:50 +0000 (11:23 -0700)
committerAaron Rosen <aaronorosen@gmail.com>
Mon, 8 Sep 2014 19:11:57 +0000 (12:11 -0700)
commit1361ad99969d2a729599720f06f8373db230e0ed
tree97b1b2e35a0f15f53e62dfc4c5b7e4bed7501eb0
parent0adfa9010d39fa2aa712f7423309c144ee0d7bf2
NSX: Correct allowed_address_pair return value on create_port

This patch fixes the NSX plugin to return [] rather than None for a
port does not have any allowed_address_pairs when a create_port api
call is made. Currently the NSX plugin is failing every patch because
now tempest is checking for this value to be [].

Change-Id: Ic82c564ff62000c367c544f44a76694be9375790
Closes-bug: 1366921
neutron/plugins/vmware/plugins/base.py
neutron/tests/unit/vmware/extensions/test_addresspairs.py