]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
update vsm credential correctly
authoraaronzhang231 <fenzhang@cisco.com>
Tue, 15 Jul 2014 00:04:17 +0000 (17:04 -0700)
committeraaronzhang231 <fenzhang@cisco.com>
Tue, 15 Jul 2014 17:50:12 +0000 (10:50 -0700)
commit487b98a73f6be41697dd4f59a245f1a7f338a72f
tree7eba03cbe435544b78ba228d9388b79361a8e199
parentf154510a7c935e2b06b4ab25340084e4304cfcf7
update vsm credential correctly

Today if we modify the n1kv VSM credential in the cisco_plugins.ini, the
older VSM ip address remains in the db, and all requests are sent to
the older VSM. This patch deletes all n1kv VSM credentials on neutron
start up before adding the newer VSM credentials. Hence making sure
that there is only one n1kv VSM IP address and credential in the db.

Change-Id: I772a86bf896a1d3d9c69c545ce6918b0fe3a2e48
Closes-Bug: #1341014
neutron/plugins/cisco/db/network_db_v2.py
neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py
neutron/tests/unit/cisco/test_network_db.py