]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX: Fix status sync with correct mappings
authorSalvatore Orlando <salv.orlando@gmail.com>
Mon, 24 Feb 2014 18:44:46 +0000 (10:44 -0800)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:31 +0000 (15:20 +0800)
commit46fe14b1403fd4a1b4c15a5f3e5a10bd7fba31c8
tree95e9d2735e49c815637484b70c17675538dbf50c
parent04b26bdd181887d8ee656b67ea81406d5ae7456e
NSX: Fix status sync with correct mappings

The code that syncs router status to the neutron_db was using the nsx
router id instead of the neutron router id thus synchronize_router
would never update the database.

Also, the switch synchronization routine was not fetching the
appropriate neutron id tag thus causing switch synchronization to
be skipped.

This patch also fixes the error in the unit tests which allowed for
the bug to be introduced.

Co-Authored-By: Salvatore Orlando <salv.orlando@gmail.com>
Closes-bug: 1283856

Change-Id: I26342ecea6ad546b224b7fca1e55f754b4883363
neutron/plugins/nicira/common/sync.py
neutron/tests/unit/vmware/test_nsx_sync.py