]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NEC plugin: Remove a colon from binding:profile key due to XML problem
authorAkihiro Motoki <motoki@da.jp.nec.com>
Fri, 21 Mar 2014 19:17:14 +0000 (04:17 +0900)
committerAkihiro Motoki <motoki@da.jp.nec.com>
Fri, 21 Mar 2014 19:47:49 +0000 (04:47 +0900)
commite10f406a653f3037109e2d7f59bed65bd54300a8
tree52afc36509fcf0a139731c177c4b8a94ed081c98
parentf1c70543095a450e9a63dc9ef7eb352900fc62e7
NEC plugin: Remove a colon from binding:profile key due to XML problem

In XML specification, if a tag name contains a colon, a part before
a colon is interpreted as namespace. If key names in binding:profile
dict contains a colon, Neutron XML serializer sends them as-is.
A colon in key names should be used only if XML namespace are used.
NEC plugin uses a colon in key names and it leads to failures to XML
deserialization. To avoid this problem, this commit removes a colon
and prefix n key names in port binding:profile so that client XML
deserializer decodes XML response successfully.

Change-Id: Ie32a2417bbce03bfc6e8f7907c0b4090fbc9e7b6
Closes-Bug: #1294166
neutron/plugins/nec/common/exceptions.py
neutron/plugins/nec/nec_plugin.py
neutron/tests/unit/nec/test_portbindings.py