+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira, Inc.
# All Rights Reserved
#
# License for the specific language governing permissions and limitations
# under the License.
#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-#
# @author: Somik Behera, Nicira Networks, Inc.
import httplib # basic HTTP library for HTTPS connections
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira, Inc.
# All Rights Reserved
#
# License for the specific language governing permissions and limitations
# under the License.
#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-#
# @author: Somik Behera, Nicira Networks, Inc.
# @author: Brad Hall, Nicira Networks, Inc.
# @author: Aaron Rosen, Nicira Networks, Inc.
import webob.exc
-# FIXME(salvatore-orlando): get rid of relative imports
-from common import config
-from nvp_plugin_version import PLUGIN_VERSION
-
-from quantum.plugins.nicira.nicira_nvp_plugin import nicira_models
-
-
from quantum.api.v2 import attributes
from quantum.api.v2 import base
from quantum.common import constants
from quantum.openstack.common import cfg
from quantum.openstack.common import rpc
from quantum import policy
+from quantum.plugins.nicira.nicira_nvp_plugin.common import config
from quantum.plugins.nicira.nicira_nvp_plugin.common import (exceptions
as nvp_exc)
from quantum.plugins.nicira.nicira_nvp_plugin import nicira_db
+from quantum.plugins.nicira.nicira_nvp_plugin import NvpApiClient
+from quantum.plugins.nicira.nicira_nvp_plugin import nvplib
from quantum.plugins.nicira.nicira_nvp_plugin import nvp_cluster
-
-import NvpApiClient
-import nvplib
-
+from quantum.plugins.nicira.nicira_nvp_plugin.nvp_plugin_version import (
+ PLUGIN_VERSION)
LOG = logging.getLogger("QuantumPlugin")
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira Networks, Inc.
# All Rights Reserved
#
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira, Inc.
# All Rights Reserved
#
# License for the specific language governing permissions and limitations
# under the License.
#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-#
# @author: Aaron Rosen, Nicira Networks, Inc.
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira, Inc.
# All Rights Reserved
#
# License for the specific language governing permissions and limitations
# under the License.
#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-#
# @author: David Lapsley <dlapsley@nicira.com>, Nicira Networks, Inc.
# @author: Aaron Rosen, Nicira Networks, Inc.
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira, Inc.
# All Rights Reserved
#
# License for the specific language governing permissions and limitations
# under the License.
#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-#
# @author: Aaron Rosen, Nicira Networks, Inc.
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira, Inc.
# All Rights Reserved
#
# License for the specific language governing permissions and limitations
# under the License.
#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-#
# @author: Aaron Rosen, Nicira Networks, Inc.
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira, Inc.
# All Rights Reserved
#
# License for the specific language governing permissions and limitations
# under the License.
#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-#
# @author: Aaron Rosen, Nicira Networks, Inc.
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira, Inc.
# All Rights Reserved
#
# License for the specific language governing permissions and limitations
# under the License.
#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-#
# @author: Aaron Rosen, Nicira Networks, Inc.
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira Networks, Inc.
# All Rights Reserved
#
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-#
# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira, Inc.
# All Rights Reserved.
#
# License for the specific language governing permissions and limitations
# under the License.
+
import logging
from sqlalchemy.orm import exc
# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira, Inc.
# All Rights Reserved.
#
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira, Inc.
# All Rights Reserved
#
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-#
class NVPCluster(object):
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira Networks, Inc.
# All Rights Reserved
#
# License for the specific language governing permissions and limitations
# under the License.
#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-#
# This will get updated at build time. Version 0 indicates developer build.
PLUGIN_VERSION = "0"
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
# Copyright 2012 Nicira Networks, Inc.
# All Rights Reserved
#
# License for the specific language governing permissions and limitations
# under the License.
#
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-#
# @author: Brad Hall, Nicira Networks, Inc.
# @author: Dave Lapsley, Nicira Networks, Inc.
# @author: Aaron Rosen, Nicira Networks, Inc.
-# TODO(bgh): We should break this into separate files. It will just keep
-# growing as we add more features :)
-
from copy import copy
-import functools
+import hashlib
import itertools
import json
-import hashlib
import logging
-import random
-import re
-import uuid
-
-from eventlet import semaphore
-
-import NvpApiClient
#FIXME(danwent): I'd like this file to get to the point where it has
# no quantum-specific logic in it
from quantum.common import constants
from quantum.common import exceptions as exception
+from quantum.plugins.nicira.nicira_nvp_plugin import NvpApiClient
+
# HTTP METHODS CONSTANTS
HTTP_GET = "GET"