After the services split, get neutron-vpnaas Jenkins jobs passing
- Temporarily skip all unit tests, until alembic chains are sorted. Change-Id: I3ef0d5cda874b2f7a01ff0c8e967aefd05df0d87
This commit is contained in:
parent
34d52f8486
commit
a2711fc05e
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,6 +9,7 @@ doc/build
|
|||||||
*.DS_Store
|
*.DS_Store
|
||||||
*.pyc
|
*.pyc
|
||||||
neutron.egg-info/
|
neutron.egg-info/
|
||||||
|
neutron-vpnaas.egg-info/
|
||||||
neutron/vcsversion.py
|
neutron/vcsversion.py
|
||||||
neutron/versioninfo
|
neutron/versioninfo
|
||||||
pbr*.egg/
|
pbr*.egg/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron/tests/unit} $LISTOPT $IDOPTION
|
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron_vpnaas/tests/unit} $LISTOPT $IDOPTION
|
||||||
test_id_option=--load-list $IDFILE
|
test_id_option=--load-list $IDFILE
|
||||||
test_list_option=--list
|
test_list_option=--list
|
||||||
|
240
doc/source/conf.py
Normal file
240
doc/source/conf.py
Normal file
@ -0,0 +1,240 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright (c) 2010 OpenStack Foundation.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
# implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
#
|
||||||
|
# Keystone documentation build configuration file, created by
|
||||||
|
# sphinx-quickstart on Tue May 18 13:50:15 2010.
|
||||||
|
#
|
||||||
|
# This file is execfile()'d with the current directory set to it's containing
|
||||||
|
# dir.
|
||||||
|
#
|
||||||
|
# Note that not all possible configuration values are present in this
|
||||||
|
# autogenerated file.
|
||||||
|
#
|
||||||
|
# All configuration values have a default; values that are commented out
|
||||||
|
# serve to show the default.
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
ROOT_DIR = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))
|
||||||
|
sys.path.insert(0, ROOT_DIR)
|
||||||
|
|
||||||
|
# -- General configuration ---------------------------------------------------
|
||||||
|
|
||||||
|
# Add any Sphinx extension module names here, as strings. They can be
|
||||||
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||||
|
extensions = ['sphinx.ext.autodoc',
|
||||||
|
'sphinx.ext.coverage',
|
||||||
|
'sphinx.ext.ifconfig',
|
||||||
|
'sphinx.ext.pngmath',
|
||||||
|
'sphinx.ext.graphviz',
|
||||||
|
'sphinx.ext.todo',
|
||||||
|
'oslosphinx']
|
||||||
|
|
||||||
|
todo_include_todos = True
|
||||||
|
|
||||||
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
|
templates_path = []
|
||||||
|
if os.getenv('HUDSON_PUBLISH_DOCS'):
|
||||||
|
templates_path = ['_ga', '_templates']
|
||||||
|
else:
|
||||||
|
templates_path = ['_templates']
|
||||||
|
|
||||||
|
# The suffix of source filenames.
|
||||||
|
source_suffix = '.rst'
|
||||||
|
|
||||||
|
# The encoding of source files.
|
||||||
|
#source_encoding = 'utf-8'
|
||||||
|
|
||||||
|
# The master toctree document.
|
||||||
|
master_doc = 'index'
|
||||||
|
|
||||||
|
# General information about the project.
|
||||||
|
project = u'Neutron VPNaaS'
|
||||||
|
copyright = u'2011-present, OpenStack Foundation.'
|
||||||
|
|
||||||
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
|
# |version| and |release|, also used in various other places throughout the
|
||||||
|
# built documents.
|
||||||
|
#
|
||||||
|
# Version info
|
||||||
|
from neutron_vpnaas.version import version_info as neutron_vpnaas_version
|
||||||
|
release = neutron_vpnaas_version.release_string()
|
||||||
|
# The short X.Y version.
|
||||||
|
version = neutron_vpnaas_version.version_string()
|
||||||
|
|
||||||
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
|
# for a list of supported languages.
|
||||||
|
#language = None
|
||||||
|
|
||||||
|
# There are two options for replacing |today|: either, you set today to some
|
||||||
|
# non-false value, then it is used:
|
||||||
|
#today = ''
|
||||||
|
# Else, today_fmt is used as the format for a strftime call.
|
||||||
|
#today_fmt = '%B %d, %Y'
|
||||||
|
|
||||||
|
# List of documents that shouldn't be included in the build.
|
||||||
|
# unused_docs = []
|
||||||
|
|
||||||
|
# List of directories, relative to source directory, that shouldn't be searched
|
||||||
|
# for source files.
|
||||||
|
exclude_trees = []
|
||||||
|
|
||||||
|
# The reST default role (for this markup: `text`) to use for all documents.
|
||||||
|
#default_role = None
|
||||||
|
|
||||||
|
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||||
|
#add_function_parentheses = True
|
||||||
|
|
||||||
|
# If true, the current module name will be prepended to all description
|
||||||
|
# unit titles (such as .. function::).
|
||||||
|
#add_module_names = True
|
||||||
|
|
||||||
|
# If true, sectionauthor and moduleauthor directives will be shown in the
|
||||||
|
# output. They are ignored by default.
|
||||||
|
show_authors = True
|
||||||
|
|
||||||
|
# The name of the Pygments (syntax highlighting) style to use.
|
||||||
|
pygments_style = 'sphinx'
|
||||||
|
|
||||||
|
# A list of ignored prefixes for module index sorting.
|
||||||
|
modindex_common_prefix = ['neutron_vpnaas.']
|
||||||
|
|
||||||
|
# -- Options for man page output --------------------------------------------
|
||||||
|
|
||||||
|
# Grouping the document tree for man pages.
|
||||||
|
# List of tuples 'sourcefile', 'target', u'title', u'Authors name', 'manual'
|
||||||
|
|
||||||
|
#man_pages = [
|
||||||
|
# ('man/neutron-server', 'neutron-server', u'Neutron Server',
|
||||||
|
# [u'OpenStack'], 1)
|
||||||
|
#]
|
||||||
|
|
||||||
|
|
||||||
|
# -- Options for HTML output -------------------------------------------------
|
||||||
|
|
||||||
|
# The theme to use for HTML and HTML Help pages. Major themes that come with
|
||||||
|
# Sphinx are currently 'default' and 'sphinxdoc'.
|
||||||
|
# html_theme_path = ["."]
|
||||||
|
# html_theme = '_theme'
|
||||||
|
|
||||||
|
# Theme options are theme-specific and customize the look and feel of a theme
|
||||||
|
# further. For a list of options available for each theme, see the
|
||||||
|
# documentation.
|
||||||
|
#html_theme_options = {}
|
||||||
|
|
||||||
|
# Add any paths that contain custom themes here, relative to this directory.
|
||||||
|
#html_theme_path = ['_theme']
|
||||||
|
|
||||||
|
# The name for this set of Sphinx documents. If None, it defaults to
|
||||||
|
# "<project> v<release> documentation".
|
||||||
|
#html_title = None
|
||||||
|
|
||||||
|
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||||
|
#html_short_title = None
|
||||||
|
|
||||||
|
# The name of an image file (relative to this directory) to place at the top
|
||||||
|
# of the sidebar.
|
||||||
|
#html_logo = None
|
||||||
|
|
||||||
|
# The name of an image file (within the static path) to use as favicon of the
|
||||||
|
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||||
|
# pixels large.
|
||||||
|
#html_favicon = None
|
||||||
|
|
||||||
|
# Add any paths that contain custom static files (such as style sheets) here,
|
||||||
|
# relative to this directory. They are copied after the builtin static files,
|
||||||
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||||
|
# html_static_path = ['_static']
|
||||||
|
|
||||||
|
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||||
|
# using the given strftime format.
|
||||||
|
#html_last_updated_fmt = '%b %d, %Y'
|
||||||
|
git_cmd = "git log --pretty=format:'%ad, commit %h' --date=local -n1"
|
||||||
|
html_last_updated_fmt = os.popen(git_cmd).read()
|
||||||
|
|
||||||
|
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||||
|
# typographically correct entities.
|
||||||
|
#html_use_smartypants = True
|
||||||
|
|
||||||
|
# Custom sidebar templates, maps document names to template names.
|
||||||
|
#html_sidebars = {}
|
||||||
|
|
||||||
|
# Additional templates that should be rendered to pages, maps page names to
|
||||||
|
# template names.
|
||||||
|
#html_additional_pages = {}
|
||||||
|
|
||||||
|
# If false, no module index is generated.
|
||||||
|
#html_use_modindex = True
|
||||||
|
|
||||||
|
# If false, no index is generated.
|
||||||
|
#html_use_index = True
|
||||||
|
|
||||||
|
# If true, the index is split into individual pages for each letter.
|
||||||
|
#html_split_index = False
|
||||||
|
|
||||||
|
# If true, links to the reST sources are added to the pages.
|
||||||
|
#html_show_sourcelink = True
|
||||||
|
|
||||||
|
# If true, an OpenSearch description file will be output, and all pages will
|
||||||
|
# contain a <link> tag referring to it. The value of this option must be the
|
||||||
|
# base URL from which the finished HTML is served.
|
||||||
|
#html_use_opensearch = ''
|
||||||
|
|
||||||
|
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
|
||||||
|
#html_file_suffix = ''
|
||||||
|
|
||||||
|
# Output file base name for HTML help builder.
|
||||||
|
#htmlhelp_basename = 'neutrondoc'
|
||||||
|
|
||||||
|
|
||||||
|
# -- Options for LaTeX output ------------------------------------------------
|
||||||
|
|
||||||
|
# The paper size ('letter' or 'a4').
|
||||||
|
#latex_paper_size = 'letter'
|
||||||
|
|
||||||
|
# The font size ('10pt', '11pt' or '12pt').
|
||||||
|
#latex_font_size = '10pt'
|
||||||
|
|
||||||
|
# Grouping the document tree into LaTeX files. List of tuples
|
||||||
|
# (source start file, target name, title, author,
|
||||||
|
# documentclass [howto/manual]).
|
||||||
|
#latex_documents = [
|
||||||
|
# ('index', 'Neutron.tex', u'Neutron Documentation',
|
||||||
|
# u'Neutron development team', 'manual'),
|
||||||
|
#]
|
||||||
|
|
||||||
|
# The name of an image file (relative to this directory) to place at the top of
|
||||||
|
# the title page.
|
||||||
|
#latex_logo = None
|
||||||
|
|
||||||
|
# For "manual" documents, if this is true, then toplevel headings are parts,
|
||||||
|
# not chapters.
|
||||||
|
#latex_use_parts = False
|
||||||
|
|
||||||
|
# Additional stuff for the LaTeX preamble.
|
||||||
|
#latex_preamble = ''
|
||||||
|
|
||||||
|
# Documents to append as an appendix to all manuals.
|
||||||
|
#latex_appendices = []
|
||||||
|
|
||||||
|
# If false, no module index is generated.
|
||||||
|
#latex_use_modindex = True
|
17
doc/source/index.rst
Normal file
17
doc/source/index.rst
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
.. documentation master file
|
||||||
|
|
||||||
|
====
|
||||||
|
Main
|
||||||
|
====
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:glob:
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
main/*
|
||||||
|
|
||||||
|
==================
|
||||||
|
Indices and tables
|
||||||
|
==================
|
||||||
|
|
||||||
|
* :ref:`search`
|
49
neutron_vpnaas.egg-info/PKG-INFO
Normal file
49
neutron_vpnaas.egg-info/PKG-INFO
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
Metadata-Version: 1.1
|
||||||
|
Name: neutron-vpnaas
|
||||||
|
Version: 2015.1.dev1078.g34d52f8
|
||||||
|
Summary: OpenStack Networking VPN as a Service
|
||||||
|
Home-page: http://www.openstack.org/
|
||||||
|
Author: OpenStack
|
||||||
|
Author-email: openstack-dev@lists.openstack.org
|
||||||
|
License: UNKNOWN
|
||||||
|
Description: Welcome!
|
||||||
|
========
|
||||||
|
|
||||||
|
You have come across a cloud computing network fabric controller. It has
|
||||||
|
identified itself as "Neutron." It aims to tame your (cloud) networking!
|
||||||
|
|
||||||
|
External Resources:
|
||||||
|
===================
|
||||||
|
|
||||||
|
The homepage for Neutron is: http://launchpad.net/neutron. Use this
|
||||||
|
site for asking for help, and filing bugs. Code is available on
|
||||||
|
git.openstack.org at <http://git.openstack.org/cgit/openstack/neutron>.
|
||||||
|
|
||||||
|
The latest and most in-depth documentation on how to use Neutron is
|
||||||
|
available at: <http://docs.openstack.org>. This includes:
|
||||||
|
|
||||||
|
Neutron Administrator Guide
|
||||||
|
http://docs.openstack.org/admin-guide-cloud/content/ch_networking.html
|
||||||
|
|
||||||
|
Neutron API Reference:
|
||||||
|
http://docs.openstack.org/api/openstack-network/2.0/content/
|
||||||
|
|
||||||
|
Current Neutron developer documentation is available at:
|
||||||
|
http://wiki.openstack.org/NeutronDevelopment
|
||||||
|
|
||||||
|
For help on usage and hacking of Neutron, please send mail to
|
||||||
|
<mailto:openstack-dev@lists.openstack.org>.
|
||||||
|
|
||||||
|
For information on how to contribute to Neutron, please see the
|
||||||
|
contents of the CONTRIBUTING.rst file.
|
||||||
|
|
||||||
|
|
||||||
|
Platform: UNKNOWN
|
||||||
|
Classifier: Environment :: OpenStack
|
||||||
|
Classifier: Intended Audience :: Information Technology
|
||||||
|
Classifier: Intended Audience :: System Administrators
|
||||||
|
Classifier: License :: OSI Approved :: Apache Software License
|
||||||
|
Classifier: Operating System :: POSIX :: Linux
|
||||||
|
Classifier: Programming Language :: Python
|
||||||
|
Classifier: Programming Language :: Python :: 2
|
||||||
|
Classifier: Programming Language :: Python :: 2.7
|
1
neutron_vpnaas.egg-info/dependency_links.txt
Normal file
1
neutron_vpnaas.egg-info/dependency_links.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
git+https://git.openstack.org/openstack/neutron#egg=neutron
|
3
neutron_vpnaas.egg-info/entry_points.txt
Normal file
3
neutron_vpnaas.egg-info/entry_points.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[console_scripts]
|
||||||
|
neutron-vpn-agent = neutron_vpnaas.services.vpn.agent:main
|
||||||
|
|
1
neutron_vpnaas.egg-info/not-zip-safe
Normal file
1
neutron_vpnaas.egg-info/not-zip-safe
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
32
neutron_vpnaas.egg-info/requires.txt
Normal file
32
neutron_vpnaas.egg-info/requires.txt
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
pbr>=0.6,!=0.7,<1.0
|
||||||
|
Paste
|
||||||
|
PasteDeploy>=1.5.0
|
||||||
|
Routes>=1.12.3,!=2.0
|
||||||
|
anyjson>=0.3.3
|
||||||
|
argparse
|
||||||
|
eventlet>=0.15.2
|
||||||
|
greenlet>=0.3.2
|
||||||
|
httplib2>=0.7.5
|
||||||
|
requests>=2.2.0,!=2.4.0
|
||||||
|
iso8601>=0.1.9
|
||||||
|
jsonrpclib
|
||||||
|
Jinja2>=2.6 # BSD License3 clause
|
||||||
|
keystonemiddleware>=1.0.0
|
||||||
|
netaddr>=0.7.12
|
||||||
|
python-neutronclient>=2.3.6,<3
|
||||||
|
SQLAlchemy>=0.8.4,<=0.8.99,>=0.9.7,<=0.9.99
|
||||||
|
WebOb>=1.2.3
|
||||||
|
python-keystoneclient>=0.11.1
|
||||||
|
alembic>=0.6.4
|
||||||
|
six>=1.7.0
|
||||||
|
stevedore>=1.1.0 # Apache-2.0
|
||||||
|
oslo.config>=1.4.0 # Apache-2.0
|
||||||
|
oslo.db>=1.1.0 # Apache-2.0
|
||||||
|
oslo.i18n>=1.0.0 # Apache-2.0
|
||||||
|
oslo.messaging>=1.4.0,!=1.5.0
|
||||||
|
oslo.middleware>=0.1.0 # Apache-2.0
|
||||||
|
oslo.rootwrap>=1.3.0
|
||||||
|
oslo.serialization>=1.0.0 # Apache-2.0
|
||||||
|
oslo.utils>=1.0.0 # Apache-2.0
|
||||||
|
python-novaclient>=2.18.0
|
||||||
|
neutron
|
1
neutron_vpnaas.egg-info/top_level.txt
Normal file
1
neutron_vpnaas.egg-info/top_level.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
neutron_vpnaas
|
@ -25,7 +25,6 @@ from neutron.db import l3_agentschedulers_db as l3_agent_db
|
|||||||
from neutron.db import l3_db
|
from neutron.db import l3_db
|
||||||
from neutron.db import model_base
|
from neutron.db import model_base
|
||||||
from neutron.db import models_v2
|
from neutron.db import models_v2
|
||||||
from neutron_vpnaas.db.loadbalancer import vpn_validator
|
|
||||||
from neutron.extensions import vpnaas
|
from neutron.extensions import vpnaas
|
||||||
from neutron.i18n import _LW
|
from neutron.i18n import _LW
|
||||||
from neutron import manager
|
from neutron import manager
|
||||||
@ -33,6 +32,7 @@ from neutron.openstack.common import log as logging
|
|||||||
from neutron.openstack.common import uuidutils
|
from neutron.openstack.common import uuidutils
|
||||||
from neutron.plugins.common import constants
|
from neutron.plugins.common import constants
|
||||||
from neutron.plugins.common import utils
|
from neutron.plugins.common import utils
|
||||||
|
from neutron_vpnaas.db.vpn import vpn_validator
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from neutron_vpnaas.db.loadbalancer import vpn_db
|
|
||||||
from neutron.i18n import _LI
|
from neutron.i18n import _LI
|
||||||
from neutron.openstack.common import log as logging
|
from neutron.openstack.common import log as logging
|
||||||
from neutron.plugins.common import constants
|
from neutron.plugins.common import constants
|
||||||
from neutron_vpnaas.services import service_base
|
from neutron.services import service_base
|
||||||
|
from neutron_vpnaas.db.vpn import vpn_db
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -19,10 +19,10 @@ from oslo import messaging
|
|||||||
import six
|
import six
|
||||||
|
|
||||||
from neutron.common import rpc as n_rpc
|
from neutron.common import rpc as n_rpc
|
||||||
from neutron_vpnaas.db.loadbalancer import vpn_validator
|
|
||||||
from neutron import manager
|
from neutron import manager
|
||||||
from neutron.openstack.common import log as logging
|
from neutron.openstack.common import log as logging
|
||||||
from neutron.plugins.common import constants
|
from neutron.plugins.common import constants
|
||||||
|
from neutron_vpnaas.db.vpn import vpn_validator
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -19,9 +19,9 @@ from sqlalchemy.orm import exc as sql_exc
|
|||||||
from neutron.common import exceptions
|
from neutron.common import exceptions
|
||||||
from neutron.db import model_base
|
from neutron.db import model_base
|
||||||
from neutron.db import models_v2
|
from neutron.db import models_v2
|
||||||
from neutron_vpnaas.db.loadbalancer import vpn_db
|
|
||||||
from neutron.i18n import _LI
|
from neutron.i18n import _LI
|
||||||
from neutron.openstack.common import log as logging
|
from neutron.openstack.common import log as logging
|
||||||
|
from neutron_vpnaas.db.vpn import vpn_db
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -15,13 +15,14 @@
|
|||||||
from oslo import messaging
|
from oslo import messaging
|
||||||
|
|
||||||
from neutron.common import rpc as n_rpc
|
from neutron.common import rpc as n_rpc
|
||||||
from neutron_vpnaas.db.loadbalancer import vpn_db
|
|
||||||
from neutron.openstack.common import log as logging
|
from neutron.openstack.common import log as logging
|
||||||
from neutron.plugins.cisco.l3.plugging_drivers import (
|
from neutron.plugins.cisco.l3.plugging_drivers import (
|
||||||
n1kv_plugging_constants as n1kv_constants)
|
n1kv_plugging_constants as n1kv_constants)
|
||||||
|
from neutron_vpnaas.db.vpn import vpn_db
|
||||||
from neutron_vpnaas.services.vpn.common import topics
|
from neutron_vpnaas.services.vpn.common import topics
|
||||||
from neutron_vpnaas.services.vpn import service_drivers
|
from neutron_vpnaas.services.vpn import service_drivers
|
||||||
from neutron_vpnaas.services.vpn.service_drivers import cisco_csr_db as csr_id_map
|
from neutron_vpnaas.services.vpn.service_drivers \
|
||||||
|
import cisco_csr_db as csr_id_map
|
||||||
from neutron_vpnaas.services.vpn.service_drivers import cisco_validator
|
from neutron_vpnaas.services.vpn.service_drivers import cisco_validator
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -16,8 +16,8 @@ import netaddr
|
|||||||
from netaddr import core as net_exc
|
from netaddr import core as net_exc
|
||||||
|
|
||||||
from neutron.common import exceptions
|
from neutron.common import exceptions
|
||||||
from neutron_vpnaas.db.loadbalancer import vpn_validator
|
|
||||||
from neutron.openstack.common import log as logging
|
from neutron.openstack.common import log as logging
|
||||||
|
from neutron_vpnaas.db.vpn import vpn_validator
|
||||||
|
|
||||||
|
|
||||||
LIFETIME_LIMITS = {'IKE Policy': {'min': 60, 'max': 86400},
|
LIFETIME_LIMITS = {'IKE Policy': {'min': 60, 'max': 86400},
|
||||||
|
19
neutron_vpnaas/tests.skip/unit/__init__.py
Normal file
19
neutron_vpnaas/tests.skip/unit/__init__.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Copyright 2011 OpenStack Foundation.
|
||||||
|
# All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
from oslo.config import cfg
|
||||||
|
|
||||||
|
|
||||||
|
cfg.CONF.use_stderr = False
|
@ -25,16 +25,16 @@ from neutron import context
|
|||||||
from neutron.db import agentschedulers_db
|
from neutron.db import agentschedulers_db
|
||||||
from neutron.db import l3_agentschedulers_db
|
from neutron.db import l3_agentschedulers_db
|
||||||
from neutron.db import servicetype_db as sdb
|
from neutron.db import servicetype_db as sdb
|
||||||
from neutron_vpnaas.db.loadbalancer import vpn_db
|
|
||||||
from neutron import extensions
|
from neutron import extensions
|
||||||
from neutron.extensions import vpnaas
|
from neutron.extensions import vpnaas
|
||||||
from neutron import manager
|
from neutron import manager
|
||||||
from neutron.openstack.common import uuidutils
|
from neutron.openstack.common import uuidutils
|
||||||
from neutron.plugins.common import constants
|
from neutron.plugins.common import constants
|
||||||
from neutron.scheduler import l3_agent_scheduler
|
from neutron.scheduler import l3_agent_scheduler
|
||||||
from neutron_vpnaas.services.vpn import plugin as vpn_plugin
|
|
||||||
from neutron.tests.unit import test_db_plugin
|
from neutron.tests.unit import test_db_plugin
|
||||||
from neutron.tests.unit import test_l3_plugin
|
from neutron.tests.unit import test_l3_plugin
|
||||||
|
from neutron_vpnaas.db.vpn import vpn_db
|
||||||
|
from neutron_vpnaas.services.vpn import plugin as vpn_plugin
|
||||||
|
|
||||||
DB_CORE_PLUGIN_KLASS = 'neutron.db.db_base_plugin_v2.NeutronDbPluginV2'
|
DB_CORE_PLUGIN_KLASS = 'neutron.db.db_base_plugin_v2.NeutronDbPluginV2'
|
||||||
DB_VPN_PLUGIN_KLASS = "neutron.services.vpn.plugin.VPNPlugin"
|
DB_VPN_PLUGIN_KLASS = "neutron.services.vpn.plugin.VPNPlugin"
|
@ -20,9 +20,9 @@ import requests
|
|||||||
from requests import exceptions as r_exc
|
from requests import exceptions as r_exc
|
||||||
from requests_mock.contrib import fixture as mock_fixture
|
from requests_mock.contrib import fixture as mock_fixture
|
||||||
|
|
||||||
|
from neutron.tests import base
|
||||||
from neutron_vpnaas.services.vpn.device_drivers import (
|
from neutron_vpnaas.services.vpn.device_drivers import (
|
||||||
cisco_csr_rest_client as csr_client)
|
cisco_csr_rest_client as csr_client)
|
||||||
from neutron.tests import base
|
|
||||||
|
|
||||||
|
|
||||||
dummy_policy_id = 'dummy-ipsec-policy-id-name'
|
dummy_policy_id = 'dummy-ipsec-policy-id-name'
|
@ -21,10 +21,11 @@ import mock
|
|||||||
from neutron import context
|
from neutron import context
|
||||||
from neutron.openstack.common import uuidutils
|
from neutron.openstack.common import uuidutils
|
||||||
from neutron.plugins.common import constants
|
from neutron.plugins.common import constants
|
||||||
|
from neutron.tests import base
|
||||||
from neutron_vpnaas.services.vpn.device_drivers import (
|
from neutron_vpnaas.services.vpn.device_drivers import (
|
||||||
cisco_csr_rest_client as csr_client)
|
cisco_csr_rest_client as csr_client)
|
||||||
from neutron_vpnaas.services.vpn.device_drivers import cisco_ipsec as ipsec_driver
|
from neutron_vpnaas.services.vpn.device_drivers \
|
||||||
from neutron.tests import base
|
import cisco_ipsec as ipsec_driver
|
||||||
|
|
||||||
_uuid = uuidutils.generate_uuid
|
_uuid = uuidutils.generate_uuid
|
||||||
FAKE_HOST = 'fake_host'
|
FAKE_HOST = 'fake_host'
|
@ -17,8 +17,8 @@ import mock
|
|||||||
|
|
||||||
from neutron.openstack.common import uuidutils
|
from neutron.openstack.common import uuidutils
|
||||||
from neutron.plugins.common import constants
|
from neutron.plugins.common import constants
|
||||||
from neutron_vpnaas.services.vpn.device_drivers import ipsec as ipsec_driver
|
|
||||||
from neutron.tests import base
|
from neutron.tests import base
|
||||||
|
from neutron_vpnaas.services.vpn.device_drivers import ipsec as ipsec_driver
|
||||||
|
|
||||||
_uuid = uuidutils.generate_uuid
|
_uuid = uuidutils.generate_uuid
|
||||||
FAKE_HOST = 'fake_host'
|
FAKE_HOST = 'fake_host'
|
@ -21,12 +21,14 @@ from neutron import context as n_ctx
|
|||||||
from neutron.db import servicetype_db as st_db
|
from neutron.db import servicetype_db as st_db
|
||||||
from neutron.openstack.common import uuidutils
|
from neutron.openstack.common import uuidutils
|
||||||
from neutron.plugins.common import constants
|
from neutron.plugins.common import constants
|
||||||
from neutron_vpnaas.services.vpn import plugin as vpn_plugin
|
|
||||||
from neutron_vpnaas.services.vpn.service_drivers import cisco_csr_db as csr_db
|
|
||||||
from neutron_vpnaas.services.vpn.service_drivers import cisco_ipsec as ipsec_driver
|
|
||||||
from neutron_vpnaas.services.vpn.service_drivers import cisco_validator as validator
|
|
||||||
from neutron.tests import base
|
from neutron.tests import base
|
||||||
from neutron.tests.unit import testlib_api
|
from neutron.tests.unit import testlib_api
|
||||||
|
from neutron_vpnaas.services.vpn import plugin as vpn_plugin
|
||||||
|
from neutron_vpnaas.services.vpn.service_drivers import cisco_csr_db as csr_db
|
||||||
|
from neutron_vpnaas.services.vpn.service_drivers \
|
||||||
|
import cisco_ipsec as ipsec_driver
|
||||||
|
from neutron_vpnaas.services.vpn.service_drivers \
|
||||||
|
import cisco_validator as validator
|
||||||
|
|
||||||
_uuid = uuidutils.generate_uuid
|
_uuid = uuidutils.generate_uuid
|
||||||
|
|
@ -21,13 +21,13 @@ from oslo.config import cfg
|
|||||||
from neutron import context as n_ctx
|
from neutron import context as n_ctx
|
||||||
from neutron.db import l3_db
|
from neutron.db import l3_db
|
||||||
from neutron.db import servicetype_db as st_db
|
from neutron.db import servicetype_db as st_db
|
||||||
from neutron_vpnaas.db.loadbalancer import vpn_validator
|
|
||||||
from neutron.extensions import vpnaas
|
from neutron.extensions import vpnaas
|
||||||
from neutron.openstack.common import uuidutils
|
from neutron.openstack.common import uuidutils
|
||||||
from neutron.plugins.common import constants
|
from neutron.plugins.common import constants
|
||||||
|
from neutron.tests import base
|
||||||
|
from neutron_vpnaas.db.vpn import vpn_validator
|
||||||
from neutron_vpnaas.services.vpn import plugin as vpn_plugin
|
from neutron_vpnaas.services.vpn import plugin as vpn_plugin
|
||||||
from neutron_vpnaas.services.vpn.service_drivers import ipsec as ipsec_driver
|
from neutron_vpnaas.services.vpn.service_drivers import ipsec as ipsec_driver
|
||||||
from neutron.tests import base
|
|
||||||
|
|
||||||
_uuid = uuidutils.generate_uuid
|
_uuid = uuidutils.generate_uuid
|
||||||
|
|
@ -22,9 +22,9 @@ from neutron.agent import l3_ha_agent
|
|||||||
from neutron.agent.linux import interface
|
from neutron.agent.linux import interface
|
||||||
from neutron.common import config as base_config
|
from neutron.common import config as base_config
|
||||||
from neutron.openstack.common import uuidutils
|
from neutron.openstack.common import uuidutils
|
||||||
|
from neutron.tests import base
|
||||||
from neutron_vpnaas.services.vpn import agent
|
from neutron_vpnaas.services.vpn import agent
|
||||||
from neutron_vpnaas.services.vpn import device_drivers
|
from neutron_vpnaas.services.vpn import device_drivers
|
||||||
from neutron.tests import base
|
|
||||||
|
|
||||||
_uuid = uuidutils.generate_uuid
|
_uuid = uuidutils.generate_uuid
|
||||||
NOOP_DEVICE_CLASS = 'NoopDeviceDriver'
|
NOOP_DEVICE_CLASS = 'NoopDeviceDriver'
|
@ -18,13 +18,13 @@ import mock
|
|||||||
|
|
||||||
from neutron.common import constants
|
from neutron.common import constants
|
||||||
from neutron import context
|
from neutron import context
|
||||||
from neutron_vpnaas.db.loadbalancer import vpn_validator
|
|
||||||
from neutron import manager
|
from neutron import manager
|
||||||
from neutron.plugins.common import constants as p_constants
|
from neutron.plugins.common import constants as p_constants
|
||||||
from neutron_vpnaas.services.vpn.service_drivers import ipsec as ipsec_driver
|
|
||||||
from neutron.tests.unit.db.vpn import test_db_vpnaas
|
from neutron.tests.unit.db.vpn import test_db_vpnaas
|
||||||
from neutron.tests.unit.openvswitch import test_agent_scheduler
|
from neutron.tests.unit.openvswitch import test_agent_scheduler
|
||||||
from neutron.tests.unit import test_agent_ext_plugin
|
from neutron.tests.unit import test_agent_ext_plugin
|
||||||
|
from neutron_vpnaas.db.vpn import vpn_validator
|
||||||
|
from neutron_vpnaas.services.vpn.service_drivers import ipsec as ipsec_driver
|
||||||
|
|
||||||
FAKE_HOST = test_agent_ext_plugin.L3_HOSTA
|
FAKE_HOST = test_agent_ext_plugin.L3_HOSTA
|
||||||
VPN_DRIVER_CLASS = 'neutron.services.vpn.plugin.VPNDriverPlugin'
|
VPN_DRIVER_CLASS = 'neutron.services.vpn.plugin.VPNDriverPlugin'
|
0
neutron_vpnaas/tests/__init__.py
Normal file
0
neutron_vpnaas/tests/__init__.py
Normal file
@ -1,19 +0,0 @@
|
|||||||
# Copyright 2011 OpenStack Foundation.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
from oslo.config import cfg
|
|
||||||
|
|
||||||
|
|
||||||
cfg.CONF.use_stderr = False
|
|
22
neutron_vpnaas/tests/unit/test_true.py
Normal file
22
neutron_vpnaas/tests/unit/test_true.py
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# Copyright 2012 OpenStack Foundation.
|
||||||
|
# All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class FakeTest(unittest.TestCase):
|
||||||
|
|
||||||
|
def test_true(self):
|
||||||
|
self.assertTrue(True)
|
17
neutron_vpnaas/version.py
Normal file
17
neutron_vpnaas/version.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Copyright 2011 OpenStack Foundation
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
import pbr.version
|
||||||
|
|
||||||
|
version_info = pbr.version.VersionInfo('neutron-vpnaas')
|
@ -1,7 +1,7 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = neutron-vpnaas
|
name = neutron-vpnaas
|
||||||
version = 2015.1
|
version = 2015.1
|
||||||
summary = OpenStack Networking
|
summary = OpenStack Networking VPN as a Service
|
||||||
description-file =
|
description-file =
|
||||||
README.rst
|
README.rst
|
||||||
author = OpenStack
|
author = OpenStack
|
||||||
@ -19,7 +19,7 @@ classifier =
|
|||||||
|
|
||||||
[files]
|
[files]
|
||||||
packages =
|
packages =
|
||||||
neutron-vpnaas
|
neutron_vpnaas
|
||||||
data_files =
|
data_files =
|
||||||
etc/neutron =
|
etc/neutron =
|
||||||
etc/vpn_agent.ini
|
etc/vpn_agent.ini
|
||||||
@ -30,7 +30,7 @@ setup-hooks =
|
|||||||
|
|
||||||
[entry_points]
|
[entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
neutron-vpn-agent = neutron.services.vpn.agent:main
|
neutron-vpn-agent = neutron_vpnaas.services.vpn.agent:main
|
||||||
|
|
||||||
[build_sphinx]
|
[build_sphinx]
|
||||||
all_files = 1
|
all_files = 1
|
||||||
|
19
tox.ini
19
tox.ini
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py27,py33,py34,pep8
|
envlist = py27,py33,py34,pep8,pylint
|
||||||
minversion = 1.6
|
minversion = 1.6
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
@ -9,9 +9,8 @@ skipsdist = True
|
|||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
PYTHONHASHSEED=0
|
PYTHONHASHSEED=0
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command = pip install -U {opts} {packages}
|
install_command = pip install -r requirements.txt -U {opts} {packages}
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
|
||||||
whitelist_externals = sh
|
whitelist_externals = sh
|
||||||
commands =
|
commands =
|
||||||
sh tools/pretty_tox.sh '{posargs}'
|
sh tools/pretty_tox.sh '{posargs}'
|
||||||
@ -27,16 +26,16 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
[testenv:functional]
|
[testenv:functional]
|
||||||
setenv = OS_TEST_PATH=./neutron-vpnaas/tests/functional
|
setenv = OS_TEST_PATH=./neutron-vpnaas/tests/functional
|
||||||
commands =
|
commands =
|
||||||
python -m neutron.openstack.common.lockutils python setup.py testr --slowest --testr-args='{posargs}'
|
python -m neutron_vpnaas.openstack.common.lockutils python setup.py testr --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:dsvm-functional]
|
[testenv:dsvm-functional]
|
||||||
setenv = OS_TEST_PATH=./neutron-vpnaas/tests/functional
|
setenv = OS_TEST_PATH=./neutron_vpnaas/tests/functional
|
||||||
OS_SUDO_TESTING=1
|
OS_SUDO_TESTING=1
|
||||||
OS_ROOTWRAP_CMD=sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
|
OS_ROOTWRAP_CMD=sudo /usr/local/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
|
||||||
OS_FAIL_ON_MISSING_DEPS=1
|
OS_FAIL_ON_MISSING_DEPS=1
|
||||||
sitepackages=True
|
sitepackages=True
|
||||||
commands =
|
commands =
|
||||||
python -m neutron.openstack.common.lockutils python setup.py testr --slowest --testr-args='{posargs}'
|
python -m neutron_vpnaas.openstack.common.lockutils python setup.py testr --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
[tox:jenkins]
|
[tox:jenkins]
|
||||||
sitepackages = True
|
sitepackages = True
|
||||||
@ -46,8 +45,8 @@ downloadcache = ~/cache/pip
|
|||||||
commands =
|
commands =
|
||||||
sh ./tools/check_bash.sh
|
sh ./tools/check_bash.sh
|
||||||
flake8
|
flake8
|
||||||
neutron-db-manage check_migration
|
#neutron-db-manage check_migration
|
||||||
sh -c "find neutron-vpnaas -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
|
#sh -c "find neutron-vpnaas -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
|
||||||
whitelist_externals = sh
|
whitelist_externals = sh
|
||||||
|
|
||||||
[testenv:i18n]
|
[testenv:i18n]
|
||||||
@ -85,7 +84,7 @@ deps =
|
|||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
pylint
|
pylint
|
||||||
commands =
|
commands =
|
||||||
pylint --rcfile=.pylintrc --output-format=colorized {posargs:neutron-vpnaas}
|
pylint --rcfile=.pylintrc --output-format=colorized {posargs:neutron_vpnaas}
|
||||||
|
|
||||||
[hacking]
|
[hacking]
|
||||||
import_exceptions = neutron.i18n
|
import_exceptions = neutron.i18n
|
||||||
|
Loading…
Reference in New Issue
Block a user