]> 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)
committerSalvatore Orlando <salv.orlando@gmail.com>
Mon, 24 Feb 2014 23:50:24 +0000 (15:50 -0800)
commitec3dfc93da605b7c41682951f2fd1e27fb09d53b
treef17ab92c6661658973f0f71b024773b78f23f47a
parent77dfe0962bb37e54a9826c126ce07ed9d9164d3c
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