]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Cisco plugin fails with ParseError no elem found
authorDane LeBlanc <leblancd@cisco.com>
Tue, 18 Mar 2014 16:37:33 +0000 (12:37 -0400)
committerGerrit Code Review <review@openstack.org>
Wed, 19 Mar 2014 00:21:46 +0000 (00:21 +0000)
commit0049967a874a3dca7c6ab8e8e84ca7dea21dc0b2
treef59f802f8ae4bf5024b1f7f96a29ff850e08d63d
parent0009e474e23c84e5952696e4fc423fd69c9ed74d
Cisco plugin fails with ParseError no elem found

When the Cisco nexus plugin is configured on DevStack, the tempest
Neutron API test test_port_list_filter_by_router_id fails with the
following error:
     ParseError: no element found: line 1, column 0

The root cause is that the Cisco Nexus plugin model layer
is encapsulating each dictionary response from the OVS subplugin
into a list, whereas the WSGI layer is expecting a dictionary
response. The fix is not to encapsulate these responses into a list.

Change-Id: I4b589e8e5696c0eae43cafc46912b3d7f29bbdb6
Closes-Bug: #1284162
neutron/plugins/cisco/models/virt_phy_sw_v2.py
neutron/tests/unit/cisco/test_network_plugin.py