]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow nicira plugin to handle multiple NVP API versions
authorSalvatore Orlando <sorlando@nicira.com>
Tue, 29 Jan 2013 00:41:53 +0000 (16:41 -0800)
committerSalvatore Orlando <salv.orlando@gmail.com>
Sat, 16 Feb 2013 00:38:26 +0000 (01:38 +0100)
commitb17bd081a16513307e5b8dd8a2d738173050ff93
treee294f30bdd671e624f0da63afc6d6a9b2be5aca8
parenta7837e5f90ff2ee2d8d28ffd59754965d86f65f8
Allow nicira plugin to handle multiple NVP API versions

Bug #1126352

This patch introduces a simple framework for enabling
nvlib to call the appropriate routine according to the
current version. To this aim, we leverage the 'server' header
which is returned by every NVP API calls (except login/logout).
The patch also accounts for the changes introduced in NVP 3.0

Change-Id: Ief3a6f2b5b99ea33548353ce3bee3fa23e42752f
quantum/plugins/nicira/nicira_nvp_plugin/NvpApiClient.py
quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py
quantum/plugins/nicira/nicira_nvp_plugin/nvplib.py
quantum/tests/unit/nicira/test_nicira_plugin.py
quantum/tests/unit/nicira/test_nvplib.py [new file with mode: 0644]