]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
nec plugin: Compare OFS datapath_id as hex int
authorAkihiro Motoki <motoki@da.jp.nec.com>
Wed, 12 Feb 2014 07:38:10 +0000 (16:38 +0900)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:21 +0000 (15:20 +0800)
commit40f7b0c144492999be2e953808072523e230601e
tree685234b2d49ee560e8064b5976d772516c257ff7
parent96ea2f1764e75be33e74809ae101280b0082c54e
nec plugin: Compare OFS datapath_id as hex int

Previously NEC plugin compares old and new datapath_ids as
a string and zero padding in hex notation is not taken into
account when compared. This causes unintended deletion and
recreation of a port on OpenFlow controller. This patch fixes
this issue by comparing datapath_ids as hex int.

Change-Id: I6aa0a041e98c9bc489af89bb642ec5f86eaecce5
Closes-Bug: 1278349
neutron/plugins/nec/common/utils.py [new file with mode: 0644]
neutron/plugins/nec/nec_plugin.py
neutron/tests/unit/nec/test_portbindings.py
neutron/tests/unit/nec/test_utils.py [new file with mode: 0644]