Retire charm-neutron-api-genericswitch

Depends-On: https://review.opendev.org/#/c/681259/
Change-Id: I503c9e2c939bf709af6214bf97ca4d2eabcf279b
This commit is contained in:
Corey Bryant 2019-09-10 09:52:33 -04:00
parent 7b246dc0e8
commit e761ba0970
38 changed files with 8 additions and 2012 deletions

9
.gitignore vendored
View File

@ -1,9 +0,0 @@
payload/*
.tox
bin
.testrepository
*.sw[nop]
*.pyc
interfaces
build
.stestr

View File

@ -1,8 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ ./unit_tests $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -1,4 +0,0 @@
- project:
templates:
- python-charm-jobs
- openstack-python35-jobs

202
LICENSE
View File

@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
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.

View File

@ -1,42 +1,10 @@
Introduction
============
This project is no longer maintained.
This is the Juju charm for [openstack/networking-generic-switch](https://git.openstack.org/cgit/openstack/networking-generic-switch).
The contents of this repository are still available in the Git
source code management system. To see the contents of this
repository before it reached its end of life, please check out the
previous commit with "git checkout HEAD^1".
Getting started
===============
Generate a config ini file with switch configuration, similar to the one below:
[ml2]
mechanism_drivers = openvswitch,hyperv,genericswitch
[genericswitch:my_switch]
device_type = netmiko_cisco
ip = 192.168.1.12
port = 22
username = admin
password = admin
`[genericswitch]` blocks should follow the syntax described in [networking-generic-switch documentation](https://git.openstack.org/cgit/openstack/networking-generic-switch/tree/README.rst)
Limitations
===========
Since neutron-api-genericswitch is not part of Ubuntu Cloud Archive, the package has to be built
manually. Build instructions exist in a [manufacturer's specific extension](https://bitbucket.org/kci1/openstack-networking-generic-switch-fastpath) of generic switch.
Deploying locally
=================
cd src
charm build
juju deploy $PATH_TO_CHECKOUT/src/builds/neutron-api-genericswitch \
--resource genericswitch-ml2-config=/full/path/to/switchconfig.ini \
--resource package=/full/path/to/neutron-api-genericswitch.deb
juju add-relation neutron-api neutron-api-genericswitch
For any further questions, please email
openstack-discuss@lists.openstack.org or join #openstack-dev on
Freenode.

View File

@ -1,3 +0,0 @@
This file was created by release-tools to ensure that this empty
directory is preserved in vcs re: lint check definitions in global
tox.ini files. This file can be removed if/when this dir is actually in use.

View File

@ -1,3 +0,0 @@
This file was created by release-tools to ensure that this empty
directory is preserved in vcs re: lint check definitions in global
tox.ini files. This file can be removed if/when this dir is actually in use.

View File

@ -1,12 +0,0 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pbr>=1.8.0,<1.9.0
PyYAML>=3.1.0
simplejson>=2.2.0
netifaces>=0.10.4
netaddr>=0.7.12,!=0.7.16
Jinja2>=2.6 # BSD License (3 clause)
six>=1.9.0
dnspython>=1.12.0
psutil>=1.1.1,<2.0.0

View File

@ -1,7 +0,0 @@
# charm-neutron-api-genericswitch
This charm adds subordinate support for [Networking Generic Switch](https://docs.openstack.org/networking-generic-switch/latest/)
to [charm-neutron-api](https://git.openstack.org/cgit/openstack/charm-neutron-api/).
## Restrictions
This charm currently only supports deployment with OpenStack Newton.

View File

@ -1 +0,0 @@
options:

View File

@ -1,16 +0,0 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
Files: *
Copyright: 2015, Canonical Ltd.
License: Apache-2.0
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.

View File

@ -1,14 +0,0 @@
#! /bin/sh
#
### BEGIN INIT INFO
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Provides: qemu-hugefsdir
# Default-Start: 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Make sure qemu gets a temp hugetblfs dir
# Description: Make sure qemu gets a temp hugetblfs dir
### END INIT INFO
mkdir -p /mnt/huge/libvirt/qemu || true
chown libvirt-qemu:libvirtd /mnt/huge/libvirt/qemu

View File

@ -1,664 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="96"
height="96"
id="svg6517"
version="1.1"
inkscape:version="0.91+devel r"
sodipodi:docname="neutron-api-odl.svg"
viewBox="0 0 96 96">
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.0931702"
inkscape:cx="-10.693008"
inkscape:cy="48.992336"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1920"
inkscape:window-height="1029"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1"
showborder="true"
showguides="false"
inkscape:guide-bbox="true"
inkscape:showpageshadow="false"
inkscape:snap-global="true"
inkscape:snap-bbox="false"
inkscape:bbox-paths="true"
inkscape:bbox-nodes="true"
inkscape:snap-bbox-edge-midpoints="true"
inkscape:snap-bbox-midpoints="true"
inkscape:object-paths="true"
inkscape:snap-intersection-paths="true"
inkscape:object-nodes="true"
inkscape:snap-smooth-nodes="true"
inkscape:snap-midpoints="true"
inkscape:snap-object-midpoints="true"
inkscape:snap-center="true"
inkscape:snap-grids="false"
inkscape:snap-nodes="true"
inkscape:snap-others="false">
<inkscape:grid
id="grid821"
type="xygrid" />
<sodipodi:guide
id="guide823"
position="18.34962,45.78585"
orientation="1,0"
inkscape:locked="false" />
<sodipodi:guide
id="guide827"
position="78.02001,46.32673"
orientation="1,0"
inkscape:locked="false" />
<sodipodi:guide
inkscape:label=""
id="guide4184"
position="65.586619,19.307"
orientation="-0.087155743,0.9961947"
inkscape:locked="false" />
<sodipodi:guide
inkscape:label=""
id="guide4188"
position="62.756032,71.583147"
orientation="-0.087155743,0.9961947"
inkscape:locked="false" />
<sodipodi:guide
inkscape:label=""
id="guide4190"
position="47.812194,78.049658"
orientation="-0.087155743,0.9961947"
inkscape:locked="false" />
<sodipodi:guide
id="guide4194"
position="25.60516,42.21665"
orientation="1,0"
inkscape:locked="false" />
<sodipodi:guide
inkscape:label=""
id="guide4202"
position="25.60516,42.070975"
orientation="-0.087155743,0.9961947"
inkscape:locked="false" />
<sodipodi:guide
inkscape:label=""
id="guide4204"
position="18.353516,50.837891"
orientation="-0.70710678,-0.70710678"
inkscape:locked="false" />
<sodipodi:guide
inkscape:label=""
id="guide4242"
position="53.449219,34.658203"
orientation="-0.70710678,-0.70710678"
inkscape:locked="false" />
<sodipodi:guide
inkscape:label=""
id="guide4252"
position="73.5625,75.210937"
orientation="-0.70710678,-0.70710678"
inkscape:locked="false" />
<sodipodi:guide
inkscape:label=""
inkscape:color="rgb(140,140,240)"
id="guide4254"
position="50.173828,42.578125"
orientation="-0.70710678,-0.70710678"
inkscape:locked="false" />
<sodipodi:guide
inkscape:label=""
id="guide4288"
position="21.871042,21.577512"
orientation="-0.70710678,-0.70710678"
inkscape:locked="false" />
<sodipodi:guide
orientation="-0.70710678,-0.70710678"
position="78.02001,56.512515"
id="guide4453"
inkscape:label=""
inkscape:locked="false" />
<sodipodi:guide
orientation="-0.70710678,-0.70710678"
position="78.02001,33.527044"
id="guide4455"
inkscape:label=""
inkscape:locked="false" />
<sodipodi:guide
orientation="-0.70710678,-0.70710678"
position="53.453125,54.357422"
id="guide4457"
inkscape:label=""
inkscape:locked="false" />
</sodipodi:namedview>
<defs
id="defs6519">
<linearGradient
id="linearGradient4366"
inkscape:collect="always">
<stop
id="stop4362"
offset="0"
style="stop-color:#f04e23;stop-opacity:1" />
<stop
id="stop4364"
offset="1"
style="stop-color:#f26b21;stop-opacity:1" />
</linearGradient>
<filter
id="filter1121"
inkscape:label="Inner Shadow"
style="color-interpolation-filters:sRGB">
<feFlood
id="feFlood1123"
result="flood"
flood-color="rgb(0,0,0)"
flood-opacity="0.59999999999999998" />
<feComposite
id="feComposite1125"
result="composite1"
operator="out"
in2="SourceGraphic"
in="flood" />
<feGaussianBlur
id="feGaussianBlur1127"
result="blur"
stdDeviation="1"
in="composite1" />
<feOffset
id="feOffset1129"
result="offset"
dy="2"
dx="0" />
<feComposite
id="feComposite1131"
result="composite2"
operator="atop"
in2="SourceGraphic"
in="offset" />
</filter>
<filter
id="filter950"
inkscape:label="Drop Shadow"
style="color-interpolation-filters:sRGB">
<feFlood
id="feFlood952"
result="flood"
flood-color="rgb(0,0,0)"
flood-opacity="0.25" />
<feComposite
id="feComposite954"
result="composite1"
operator="in"
in2="SourceGraphic"
in="flood" />
<feGaussianBlur
id="feGaussianBlur956"
result="blur"
stdDeviation="1"
in="composite1" />
<feOffset
id="feOffset958"
result="offset"
dy="1"
dx="0" />
<feComposite
id="feComposite960"
result="composite2"
operator="over"
in2="offset"
in="SourceGraphic" />
</filter>
<filter
inkscape:label="Badge Shadow"
id="filter891"
inkscape:collect="always">
<feGaussianBlur
id="feGaussianBlur893"
stdDeviation="0.71999962"
inkscape:collect="always" />
</filter>
<filter
inkscape:collect="always"
id="filter3831">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.86309522"
id="feGaussianBlur3833" />
</filter>
<filter
inkscape:collect="always"
id="filter3868"
x="-0.17186207"
width="1.3437241"
y="-0.1643077"
height="1.3286154">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.62628186"
id="feGaussianBlur3870" />
</filter>
<linearGradient
id="Background">
<stop
style="stop-color:#22779e;stop-opacity:1"
offset="0"
id="stop4178" />
<stop
style="stop-color:#2991c0;stop-opacity:1"
offset="1"
id="stop4180" />
</linearGradient>
<clipPath
id="clipPath873"
clipPathUnits="userSpaceOnUse">
<g
style="display:inline;fill:#ff00ff;fill-opacity:1;stroke:none"
inkscape:label="Layer 1"
id="g875"
transform="matrix(0,-0.66666667,0.66604479,0,-258.25992,677.00001)">
<path
sodipodi:nodetypes="sssssssss"
inkscape:connector-curvature="0"
id="path877"
d="M 46.702703,898.22775 H 97.297297 C 138.16216,898.22775 144,904.06497 144,944.92583 v 50.73846 c 0,40.86071 -5.83784,46.69791 -46.702703,46.69791 H 46.702703 C 5.8378378,1042.3622 0,1036.525 0,995.66429 v -50.73846 c 0,-40.86086 5.8378378,-46.69808 46.702703,-46.69808 z"
style="display:inline;fill:#ff00ff;fill-opacity:1;stroke:none" />
</g>
</clipPath>
<style
type="text/css"
id="style867">
.fil0 {fill:#1F1A17}
</style>
<clipPath
id="clipPath16">
<path
d="M -9,-9 H 605 V 222 H -9 Z"
id="path18"
inkscape:connector-curvature="0" />
</clipPath>
<clipPath
id="clipPath116">
<path
d="m 91.7368,146.3253 -9.7039,-1.577 -8.8548,-3.8814 -7.5206,-4.7308 -7.1566,-8.7335 -4.0431,-4.282 -3.9093,-1.4409 -1.034,2.5271 1.8079,2.6096 0.4062,3.6802 1.211,-0.0488 1.3232,-1.2069 -0.3569,3.7488 -1.4667,0.9839 0.0445,1.4286 -3.4744,-1.9655 -3.1462,-3.712 -0.6559,-3.3176 1.3453,-2.6567 1.2549,-4.5133 2.5521,-1.2084 2.6847,0.1318 2.5455,1.4791 -1.698,-8.6122 1.698,-9.5825 -1.8692,-4.4246 -6.1223,-6.5965 1.0885,-3.941 2.9002,-4.5669 5.4688,-3.8486 2.9007,-0.3969 3.225,-0.1094 -2.012,-8.2601 7.3993,-3.0326 9.2188,-1.2129 3.1535,2.0619 0.2427,5.5797 3.5178,5.8224 0.2426,4.6094 8.4909,-0.6066 7.8843,0.7279 -7.8843,-4.7307 1.3343,-5.701 4.9731,-7.763 4.8521,-2.0622 3.8814,1.5769 1.577,3.1538 8.1269,6.1861 1.5769,-1.3343 12.7363,-0.485 2.5473,2.0619 0.2426,3.6391 -0.849,1.5767 -0.6066,9.8251 -4.2454,8.4909 0.7276,3.7605 2.5475,-1.3343 7.1566,-6.6716 3.5175,-0.2424 3.8815,1.5769 3.8818,2.9109 1.9406,6.3077 11.4021,-0.7277 6.914,2.6686 5.5797,5.2157 4.0028,7.5206 0.9706,8.8546 -0.8493,10.3105 -2.1832,9.2185 -2.1836,2.9112 -3.0322,0.9706 -5.3373,-5.8224 -4.8518,-1.6982 -4.2455,7.0353 -4.2454,3.8815 -2.3049,1.4556 -9.2185,7.6419 -7.3993,4.0028 -7.3993,0.6066 -8.6119,-1.4556 -7.5206,-2.7899 -5.2158,-4.2454 -4.1241,-4.9734 -4.2454,-1.2129"
id="path118"
inkscape:connector-curvature="0" />
</clipPath>
<clipPath
id="clipPath128">
<path
d="m 91.7368,146.3253 -9.7039,-1.577 -8.8548,-3.8814 -7.5206,-4.7308 -7.1566,-8.7335 -4.0431,-4.282 -3.9093,-1.4409 -1.034,2.5271 1.8079,2.6096 0.4062,3.6802 1.211,-0.0488 1.3232,-1.2069 -0.3569,3.7488 -1.4667,0.9839 0.0445,1.4286 -3.4744,-1.9655 -3.1462,-3.712 -0.6559,-3.3176 1.3453,-2.6567 1.2549,-4.5133 2.5521,-1.2084 2.6847,0.1318 2.5455,1.4791 -1.698,-8.6122 1.698,-9.5825 -1.8692,-4.4246 -6.1223,-6.5965 1.0885,-3.941 2.9002,-4.5669 5.4688,-3.8486 2.9007,-0.3969 3.225,-0.1094 -2.012,-8.2601 7.3993,-3.0326 9.2188,-1.2129 3.1535,2.0619 0.2427,5.5797 3.5178,5.8224 0.2426,4.6094 8.4909,-0.6066 7.8843,0.7279 -7.8843,-4.7307 1.3343,-5.701 4.9731,-7.763 4.8521,-2.0622 3.8814,1.5769 1.577,3.1538 8.1269,6.1861 1.5769,-1.3343 12.7363,-0.485 2.5473,2.0619 0.2426,3.6391 -0.849,1.5767 -0.6066,9.8251 -4.2454,8.4909 0.7276,3.7605 2.5475,-1.3343 7.1566,-6.6716 3.5175,-0.2424 3.8815,1.5769 3.8818,2.9109 1.9406,6.3077 11.4021,-0.7277 6.914,2.6686 5.5797,5.2157 4.0028,7.5206 0.9706,8.8546 -0.8493,10.3105 -2.1832,9.2185 -2.1836,2.9112 -3.0322,0.9706 -5.3373,-5.8224 -4.8518,-1.6982 -4.2455,7.0353 -4.2454,3.8815 -2.3049,1.4556 -9.2185,7.6419 -7.3993,4.0028 -7.3993,0.6066 -8.6119,-1.4556 -7.5206,-2.7899 -5.2158,-4.2454 -4.1241,-4.9734 -4.2454,-1.2129"
id="path130"
inkscape:connector-curvature="0" />
</clipPath>
<linearGradient
inkscape:collect="always"
id="linearGradient3850">
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop3852" />
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="1"
id="stop3854" />
</linearGradient>
<clipPath
id="clipPath3095"
clipPathUnits="userSpaceOnUse">
<path
inkscape:connector-curvature="0"
id="path3097"
d="M 976.648,389.551 H 134.246 V 1229.55 H 976.648 V 389.551" />
</clipPath>
<clipPath
id="clipPath3195"
clipPathUnits="userSpaceOnUse">
<path
inkscape:connector-curvature="0"
id="path3197"
d="m 611.836,756.738 -106.34,105.207 c -8.473,8.289 -13.617,20.102 -13.598,33.379 L 598.301,790.207 c -0.031,-13.418 5.094,-25.031 13.535,-33.469" />
</clipPath>
<clipPath
id="clipPath3235"
clipPathUnits="userSpaceOnUse">
<path
inkscape:connector-curvature="0"
id="path3237"
d="m 1095.64,1501.81 c 35.46,-35.07 70.89,-70.11 106.35,-105.17 4.4,-4.38 7.11,-10.53 7.11,-17.55 l -106.37,105.21 c 0,7 -2.71,13.11 -7.09,17.51" />
</clipPath>
<linearGradient
inkscape:collect="always"
id="linearGradient4389">
<stop
style="stop-color:#f04e23;stop-opacity:1"
offset="0"
id="stop4391" />
<stop
style="stop-color:#f26b21;stop-opacity:1"
offset="1"
id="stop4393" />
</linearGradient>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath4591">
<path
id="path4593"
style="fill:#ff00ff;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1106.6009,730.43734 -0.036,21.648 c -0.01,3.50825 -2.8675,6.61375 -6.4037,6.92525 l -83.6503,7.33162 c -3.5205,0.30763 -6.3812,-2.29987 -6.3671,-5.8145 l 0.036,-21.6475 20.1171,-1.76662 -0.011,4.63775 c 0,1.83937 1.4844,3.19925 3.3262,3.0395 l 49.5274,-4.33975 c 1.8425,-0.166 3.3425,-1.78125 3.3538,-3.626 l 0.01,-4.63025 20.1,-1.7575"
inkscape:connector-curvature="0" />
</clipPath>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3850"
id="radialGradient3856"
cx="-26.508606"
cy="93.399292"
fx="-26.508606"
fy="93.399292"
r="20.40658"
gradientTransform="matrix(-1.4333926,-2.2742838,1.1731823,-0.73941125,-174.08025,98.374394)"
gradientUnits="userSpaceOnUse" />
<filter
inkscape:collect="always"
id="filter3885">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="5.7442192"
id="feGaussianBlur3887" />
</filter>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3850"
id="linearGradient3895"
x1="348.20132"
y1="593.11615"
x2="-51.879555"
y2="993.19702"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-318.48033,212.32022)" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3850"
id="radialGradient3902"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-1.4333926,-2.2742838,1.1731823,-0.73941125,-174.08025,98.374394)"
cx="-26.508606"
cy="93.399292"
fx="-26.508606"
fy="93.399292"
r="20.40658" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3850"
id="linearGradient3904"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-318.48033,212.32022)"
x1="348.20132"
y1="593.11615"
x2="-51.879555"
y2="993.19702" />
<linearGradient
gradientUnits="userSpaceOnUse"
y2="23.383789"
x2="25.217773"
y1="27.095703"
x1="21.505859"
id="linearGradient4318"
xlink:href="#linearGradient4366"
inkscape:collect="always" />
<linearGradient
gradientUnits="userSpaceOnUse"
y2="20.884073"
x2="71.960243"
y1="20.041777"
x1="72.802544"
id="linearGradient4326"
xlink:href="#linearGradient4389"
inkscape:collect="always" />
<linearGradient
gradientUnits="userSpaceOnUse"
y2="24.881023"
x2="57.450542"
y1="77.404816"
x1="57.450542"
id="linearGradient4319"
xlink:href="#linearGradient4552"
inkscape:collect="always" />
<linearGradient
id="linearGradient4552"
inkscape:collect="always">
<stop
id="stop4554"
offset="0"
style="stop-color:#f8a718;stop-opacity:1" />
<stop
id="stop4556"
offset="1"
style="stop-color:#fab814;stop-opacity:1" />
</linearGradient>
</defs>
<metadata
id="metadata6522">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
style="display:inline"
transform="translate(268,-635.29076)"
id="layer1"
inkscape:groupmode="layer"
inkscape:label="BACKGROUND">
<path
sodipodi:nodetypes="sssssssss"
inkscape:connector-curvature="0"
id="path6455"
d="M -268,700.15563 V 666.4259 c 0,-27.24324 3.88785,-31.13513 31.10302,-31.13513 h 33.79408 c 27.21507,0 31.1029,3.89189 31.1029,31.13513 v 33.72973 c 0,27.24325 -3.88783,31.13514 -31.1029,31.13514 h -33.79408 c -27.21517,0 -31.10302,-3.89189 -31.10302,-31.13514 z"
style="display:inline;fill:#e6e6e6;fill-opacity:1;stroke:none;filter:url(#filter1121)" />
<g
id="g4336">
<g
transform="matrix(0.06790711,0,0,-0.06790711,-239.0411,765.68623)"
id="g3897"
xml:space="default">
<path
inkscape:connector-curvature="0"
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.7;fill:url(#radialGradient3902);fill-opacity:1;stroke:none;stroke-width:2;marker:none;filter:url(#filter3831);enable-background:accumulate"
d="m -48.09375,67.8125 c -0.873996,-0.0028 -2.089735,0.01993 -3.40625,0.09375 -2.633031,0.147647 -5.700107,0.471759 -7.78125,1.53125 a 1.0001,1.0001 0 0 0 -0.25,1.59375 L -38.8125,92.375 a 1.0001,1.0001 0 0 0 0.84375,0.3125 L -24,90.5625 a 1.0001,1.0001 0 0 0 0.53125,-1.71875 L -46.0625,68.125 a 1.0001,1.0001 0 0 0 -0.625,-0.28125 c 0,0 -0.532254,-0.02842 -1.40625,-0.03125 z"
transform="matrix(10.616011,0,0,-10.616011,357.98166,1725.8152)"
id="path3821"
xml:space="default" />
<path
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.6;fill:none;stroke:#000000;stroke-width:2.77429962;stroke-linecap:round;marker:none;filter:url(#filter3868);enable-background:accumulate"
d="m -15.782705,81.725197 8.7458304,9.147937"
id="path3858"
inkscape:connector-curvature="0"
transform="matrix(10.616011,0,0,-10.616011,39.50133,1725.8152)"
xml:space="default" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;opacity:0.3;fill:url(#linearGradient3904);fill-opacity:1;stroke:none;stroke-width:2;marker:none;filter:url(#filter3885);enable-background:accumulate"
d="m -95.18931,981.03569 a 10.617073,10.617073 0 0 1 -0.995251,-0.3318 l -42.795789,-5.308 a 10.617073,10.617073 0 0 1 -6.30326,-17.9145 L -4.2897203,812.5065 a 10.617073,10.617073 0 0 1 8.95726,-3.3175 l 49.0990503,7.63026 a 10.617073,10.617073 0 0 1 5.97151,17.91452 L -87.55905,978.04989 a 10.617073,10.617073 0 0 1 -7.63026,2.9858 z"
id="path3874"
inkscape:connector-curvature="0"
xml:space="default" />
</g>
<path
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#f04e23;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.1;marker:none;enable-background:accumulate"
d="m 20.697266,20.515625 c -1.360395,0.586415 -2.348391,1.940628 -2.351563,3.455078 l 0.0078,45.630859 c -0.0037,0.875463 0.33194,1.637757 0.86914,2.201172 l -0.0098,0.0098 0.144531,0.142578 c 0.0031,0.0028 0.0067,0.005 0.0098,0.0078 l 7.292968,7.164062 6.826172,-7.384765 -11.669922,1.021484 c -0.0235,0.002 -0.04506,-0.002 -0.06836,0 L 45.263672,70.707031 67.28125,68.777344 c 0.463136,-0.0408 0.902799,-0.174059 1.306641,-0.373047 l -11.835938,-11.835938 -10.558594,0.925782 -1.638671,0.144531 -1.636719,0.142578 0.002,-11.490234 h -0.002 l -24.564453,2.152343 v -3.28125 l 24.566406,-2.154297 v -0.269531 z m 25.498046,25.496094 -0.002,8.199219 7.541016,-0.660157 z"
transform="translate(-268,635.29076)"
id="path4308"
inkscape:connector-curvature="0" />
<path
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#f26b21;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.1;marker:none;enable-background:accumulate"
d="m 67.320312,16.253906 -45.498046,3.958985 c -0.39583,0.03513 -0.770092,0.149746 -1.125,0.302734 l 22.222656,22.222656 0.002,-11.222656 1.638672,-0.144531 1.638672,-0.142578 24.580078,-2.15625 0.0039,-9.667969 c 0,0.0067 0.002,0.01253 0.002,0.01953 l -0.0059,11.958984 6.453125,-6.984374 -7.339844,-7.21875 -0.0078,0.0098 c -0.633003,-0.646717 -1.5421,-1.018147 -2.564454,-0.935547 z m -25.146484,2.189453 -20.5,1.800782 c 0.05157,-0.0068 0.100244,-0.0243 0.152344,-0.0293 z m 28.601563,13.91211 -24.578125,2.15625 -0.002,11.5 7.539063,7.539062 17.03125,-1.492187 z m -0.01172,22.986328 -14.011719,1.226562 11.835938,11.835938 c 1.271292,-0.626416 2.168839,-1.942262 2.171875,-3.388672 z"
transform="translate(-268,635.29076)"
id="path4233"
inkscape:connector-curvature="0" />
<rect
xml:space="default"
y="648.49109"
x="-258.70667"
height="69.20665"
width="69.20665"
id="rect3585-3"
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.8;fill:none;stroke:none;stroke-width:4;marker:none;enable-background:accumulate" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:sans-serif;-inkscape-font-specification:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;color-interpolation:sRGB;color-interpolation-filters:sRGB;fill:url(#linearGradient4318);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:5.25;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 22.029297,20.195312 -0.207031,0.01758 c -1.902428,0.168824 -3.45149,1.830243 -3.472657,3.726562 l 6.3125,6.3125 0.94336,0.943359 v -0.0918 c 0.004,-1.90955 1.563482,-3.588043 3.476562,-3.757813 l 0.08984,-0.0078 -0.798828,-0.798829 z"
transform="translate(-268,635.29076)"
id="path4256"
inkscape:connector-curvature="0" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:sans-serif;-inkscape-font-specification:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.53600003;color-interpolation:sRGB;color-interpolation-filters:sRGB;fill:url(#linearGradient4326);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.4000001;stroke-miterlimit:4;stroke-dasharray:none;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 67.330078,16.253906 0.701172,0.701172 6.441406,6.441406 0.107422,-0.0098 c 0.951849,-0.07691 1.81051,0.233938 2.435547,0.798828 l -7.123047,-7.005859 -0.0078,0.0098 c -0.630923,-0.644591 -1.536438,-1.014902 -2.554688,-0.935547 z m 9.72461,7.96875 c 0.0609,0.05703 0.10994,0.125626 0.166015,0.1875 l 0.01172,-0.01172 z"
transform="translate(-268,635.29076)"
id="path4272"
inkscape:connector-curvature="0" />
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:sans-serif;-inkscape-font-specification:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;color-interpolation:sRGB;color-interpolation-filters:sRGB;fill:#f04e23;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.70000005;stroke-miterlimit:4;stroke-dasharray:none;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
d="m 18.363281,69.712891 c 0.02468,0.827451 0.34572,1.551122 0.859375,2.089843 l -0.0098,0.0098 0.144531,0.142578 c 0.0031,0.0028 0.0067,0.005 0.0098,0.0078 l 7.232421,7.105468 c -0.554778,-0.518234 -0.901368,-1.247207 -0.960937,-2.080078 l -6.6875,-6.689453 z m 8.273438,9.390625 0.02344,0.02344 0.0039,-0.0039 c -0.0084,-0.0074 -0.01902,-0.01201 -0.02734,-0.01953 z"
transform="translate(-268,635.29076)"
id="path4290"
inkscape:connector-curvature="0" />
<path
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#f58020;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;enable-background:accumulate"
d="m -214.55078,696.63256 -10.56381,-10.56381 7.29232,-12.13151 3.2754,2.9961 3.88512,11.59245 -3.88912,8.10677 z"
id="path4464"
inkscape:connector-curvature="0"
xml:space="default"
sodipodi:nodetypes="ccccccc" />
<path
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#f26b21;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;enable-background:accumulate"
d="m -217.82617,688.71263 -3.01835,-3.01834 -21.5461,1.88944 -4.23895,-4.11395 -3.01691,0.26434 7.25586,7.13086 17.30859,2.20703 z"
id="path4462"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccc" />
<path
style="display:inline;fill:url(#linearGradient4319);fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 74.580078,23.386719 -25.15039,2.1875 -1.140626,0.09961 L 28.929688,27.375 c -1.841344,0.244196 -3.320328,1.870994 -3.324219,3.728516 l 0.0039,21.189453 24.566406,-2.154297 0.002,-11.492188 1.638672,-0.144531 1.638672,-0.142578 24.580078,-2.15625 0.0039,-9.667969 c -0.0079,-1.903969 -1.549409,-3.302721 -3.458984,-3.148437 z m 3.453125,16.099609 -24.580078,2.15625 -0.0039,19.699219 24.576172,-2.152344 z m -27.859375,13.935547 -24.564453,2.152344 0.0039,21.160156 c -0.0079,1.889288 1.51552,3.292697 3.400391,3.160156 l 40.259766,-3.523437 5.142578,-0.449219 0.125,-0.01172 c 1.92109,-0.16923 3.474515,-1.855838 3.478515,-3.761718 l 0.0039,-9.675782 -24.574219,2.152344 -1.638672,0.144531 -1.636719,0.142578 0.002,-11.490234 z"
transform="translate(-268,635.29076)"
id="path4633-5"
inkscape:connector-curvature="0" />
<path
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#f04e23;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;enable-background:accumulate"
d="m -249.65067,680.44868 7.25583,7.25583 0.002,-10.71551 -7.2578,-7.01958 z"
id="path4460"
inkscape:connector-curvature="0"
xml:space="default" />
<path
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#f26b21;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;enable-background:accumulate"
d="m -214.55087,696.63247 21.55222,-1.88742 3.01866,3.01867 -27.84618,2.43915 0.001,-6.84452 z"
id="path4466"
inkscape:connector-curvature="0"
xml:space="default"
sodipodi:nodetypes="cccccc" />
<path
xml:space="default"
inkscape:connector-curvature="0"
id="path4468"
d="m -217.82227,673.93724 24.82362,-2.17766 3.01866,3.01867 -24.56688,2.15509 z"
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#f26b21;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;enable-background:accumulate"
sodipodi:nodetypes="ccccc" />
<path
style="display:inline;opacity:0.3;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 74.580078,23.386719 -25.15039,2.1875 -1.140626,0.09961 L 28.929688,27.375 c -1.841344,0.244196 -3.320328,1.870994 -3.324219,3.728516 v 0.199218 c 0.0039,-1.85752 1.482868,-3.484315 3.324219,-3.728515 l 19.359374,-1.701172 1.140626,-0.09961 25.15039,-2.1875 c 1.90957,-0.15428 3.450984,1.244467 3.458984,3.148437 v -0.199219 c -0.0079,-1.903969 -1.549409,-3.302721 -3.458984,-3.148437 z m 3.453125,16.099609 -24.580078,2.15625 v 0.199219 l 24.580078,-2.15625 z M 50.173828,53.421875 25.609375,55.574219 v 0.199219 l 24.564453,-2.152344 h 0.002 v -0.199219 z m 27.84961,9.050781 -24.574219,2.152344 -1.638672,0.144531 -1.636719,0.142578 v 0.199219 l 1.636719,-0.142578 1.638672,-0.144531 24.574219,-2.152344 z"
transform="translate(-268,635.29076)"
id="path4470"
inkscape:connector-curvature="0" />
</g>
</g>
<g
style="display:inline"
inkscape:label="PLACE YOUR PICTOGRAM HERE"
id="layer3"
inkscape:groupmode="layer" />
<g
sodipodi:insensitive="true"
style="display:none"
inkscape:label="BADGE"
id="layer2"
inkscape:groupmode="layer">
<g
clip-path="none"
id="g4394"
transform="translate(-340.00001,-581)"
style="display:inline">
<g
id="g855">
<g
style="opacity:0.6;filter:url(#filter891)"
clip-path="url(#clipPath873)"
id="g870"
inkscape:groupmode="maskhelper">
<circle
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
id="path844"
transform="matrix(1.4999992,0,0,1.4999992,-29.999795,-237.54282)"
cx="252"
cy="552.36218"
r="12" />
</g>
<g
id="g862">
<circle
transform="matrix(1.4999992,0,0,1.4999992,-29.999795,-238.54282)"
id="path4398"
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#f5f5f5;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
cx="252"
cy="552.36218"
r="12" />
<circle
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#dd4814;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4;marker:none;enable-background:accumulate"
id="path4400"
transform="matrix(1.25,0,0,1.25,33,-100.45273)"
cx="252"
cy="552.36218"
r="12" />
<path
transform="matrix(1.511423,-0.16366377,0.16366377,1.511423,-755.37346,-191.93651)"
d="m 669.8173,595.77657 c -0.39132,0.22593 -3.62645,-1.90343 -4.07583,-1.95066 -0.44938,-0.0472 -4.05653,1.36297 -4.39232,1.06062 -0.3358,-0.30235 0.68963,-4.03715 0.59569,-4.47913 -0.0939,-0.44198 -2.5498,-3.43681 -2.36602,-3.8496 0.18379,-0.41279 4.05267,-0.59166 4.44398,-0.81759 0.39132,-0.22593 2.48067,-3.48704 2.93005,-3.4398 0.44938,0.0472 1.81505,3.67147 2.15084,3.97382 0.3358,0.30236 4.08294,1.2817 4.17689,1.72369 0.0939,0.44198 -2.9309,2.86076 -3.11469,3.27355 -0.18379,0.41279 0.0427,4.27917 -0.34859,4.5051 z"
inkscape:randomized="0"
inkscape:rounded="0.1"
inkscape:flatsided="false"
sodipodi:arg2="1.6755161"
sodipodi:arg1="1.0471976"
sodipodi:r2="4.3458705"
sodipodi:r1="7.2431178"
sodipodi:cy="589.50385"
sodipodi:cx="666.19574"
sodipodi:sides="5"
id="path4459"
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#f5f5f5;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;marker:none;enable-background:accumulate"
sodipodi:type="star" />
</g>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 32 KiB

View File

@ -1,5 +0,0 @@
includes: ['layer:openstack', 'interface:neutron-plugin-api-subordinate']
options:
basic:
use_venv: True
include_system_packages: True

View File

@ -1,80 +0,0 @@
# Copyright 2016 Canonical Ltd
#
# 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 shutil
import charmhelpers.contrib.openstack.utils as ch_utils
import charms_openstack.adapters
import charms_openstack.charm
from charmhelpers.core import hookenv
ML2_CONF = '/etc/neutron/plugins/ml2/ml2_conf.ini'
@charms_openstack.charm.register_os_release_selector
def choose_charm_class():
"""Choose the charm class based on the neutron-common package installed"""
return ch_utils.os_release('neutron-common')
class NewtonNeutronAPIGenericSwitchCharm(
charms_openstack.charm.OpenStackCharm):
name = 'neutron-api-genericswitch'
release = 'newton'
packages = ['neutron-common',
'neutron-plugin-ml2']
required_relations = ['neutron-plugin-api-subordinate']
restart_map = {ML2_CONF: []}
adapters_class = charms_openstack.adapters.OpenStackRelationAdapters
genericswitch_config = \
'/etc/neutron/plugins/ml2/ml2_conf_genericswitch.ini'
service_plugins = ('router,firewall,vpnaas,metering,'
'neutron_lbaas.services.loadbalancer.'
'plugin.LoadBalancerPluginv2')
def install(self):
hookenv.log('Installing deb from resource file.')
package_path = hookenv.resource_get(name='package')
config_path = hookenv.resource_get('genericswitch-ml2-config')
shutil.copy(config_path, self.genericswitch_config)
self.packages.append(package_path)
super().install()
def configure_plugin(self, api_principle):
"""Add sections and tuples to insert values into neutron-server's
neutron.conf
"""
inject_config = {
"neutron-api": {
"/etc/neutron/neutron.conf": {
"sections": {
'DEFAULT': [],
}
}
}
}
api_principle.configure_plugin(
neutron_plugin='genericswitch',
core_plugin='neutron.plugins.ml2.plugin.Ml2Plugin',
neutron_plugin_config='/etc/neutron/plugins/ml2/ml2_conf.ini',
service_plugins=self.service_plugins,
subordinate_configuration=inject_config)

View File

@ -1,37 +0,0 @@
name: neutron-api-genericswitch
subordinate: true
summary: OpenStack Networking - Generic Switch mechanism driver
maintainer: OpenStack Charmers <openstack-charmers@lists.ubuntu.com>
description: |
Neutron is a virtual network service for OpenStack, and a part of
Netstack. Just like OpenStack Nova provides an API to dynamically
request and configure virtual servers, Neutron provides an API to
dynamically request and configure virtual networks. These networks
connect "interfaces" from other OpenStack services (e.g., virtual NICs
from Nova VMs). The Neutron API supports extensions to provide
advanced network capabilities (e.g., QoS, ACLs, network monitoring,
etc.)
.
This charm configures the neutron-api service with the Generic Switch
mechanism driver.
tags:
- openstack
series:
- xenial
provides:
neutron-plugin-api-subordinate:
interface: neutron-plugin-api-subordinate
scope: container
requires:
container:
interface: juju-info
scope: container
resources:
genericswitch-ml2-config:
type: file
filename: ml2_conf_genericswitch.ini
description: Configuration file for generic switch devices.
package:
type: file
filename: neutron-api-genericswitch.deb
description: Packaged version of the networking-generic-switch python package

View File

@ -1,38 +0,0 @@
# Copyright 2016 Canonical Ltd
#
# 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 charms.reactive as reactive
import charms_openstack.charm as charm
import charm.openstack.neutron_api_genericswitch as neutron_api_genericswitch
charm.use_defaults(
'charm.installed',
'config.changed',
'update-status')
@reactive.when('neutron-plugin-api-subordinate.connected')
def configure_plugin(api_principle):
with charm.provide_charm_instance() as neutron_api_genericswitch_charm:
neutron_api_genericswitch_charm.configure_plugin(api_principle)
neutron_api_genericswitch_charm.assess_status()
@reactive.when_file_changed(neutron_api_genericswitch.ML2_CONF)
@reactive.when('neutron-plugin-api-subordinate.connected')
def remote_restart(api_principle):
api_principle.request_restart()

View File

@ -1,35 +0,0 @@
###############################################################################
# [ WARNING ]
# Configuration file maintained by Juju. Local changes may be overwritten.
###############################################################################
#
[ml2]
type_drivers = {{ options.overlay_net_types }},local,flat,vlan
tenant_network_types = {{ options.overlay_net_types }}
mechanism_drivers = opendaylight
[ml2_type_flat]
# Provider nets only
[ml2_type_vlan]
# Provider nets only
[ml2_type_gre]
tunnel_id_ranges = 1:1000
[ml2_type_vxlan]
vni_ranges = 1001:2000
[ml2_odl]
username = {{ odl_controller.username }}
password = {{ odl_controller.password }}
url = http://{{ odl_controller.private_address }}:{{ odl_controller.port }}/controller/nb/v2/neutron
[securitygroup]
{% if options.security_groups -%}
enable_security_group = True
{% else -%}
enable_security_group = False
{% endif -%}

View File

@ -1,33 +0,0 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
coverage>=3.6
mock>=1.2
flake8>=2.2.4,<=2.4.1
os-testr>=0.4.1
charm-tools>=2.0.0
requests==2.6.0
# amulet deployment helpers
git+https://github.com/juju/charm-helpers#egg=charmhelpers
# BEGIN: Amulet OpenStack Charm Helper Requirements
# Liberty client lower constraints
amulet>=1.14.3,<2.0
bundletester>=0.6.1,<1.0
aodhclient>=0.1.0
python-barbicanclient>=4.0.1
python-ceilometerclient>=1.5.0
python-cinderclient>=1.4.0
python-designateclient>=1.5
python-glanceclient>=1.1.0
python-heatclient>=0.8.0
python-keystoneclient>=1.7.1
python-manilaclient>=1.8.1
python-neutronclient>=3.1.0
python-novaclient>=2.30.1
python-openstackclient>=1.7.0
python-swiftclient>=2.6.0
pika>=0.10.0,<1.0
distro-info
# END: Amulet OpenStack Charm Helper Requirements
# NOTE: workaround for 14.04 pip/tox
pytz

View File

@ -1,9 +0,0 @@
# Overview
This directory provides Amulet tests to verify basic deployment functionality
from the perspective of this charm, its requirements and its features, as
exercised in a subset of the full OpenStack deployment test bundle topology.
For full details on functional testing of OpenStack charms please refer to
the [functional testing](http://docs.openstack.org/developer/charm-guide/testing.html#functional-testing)
section of the OpenStack Charm Guide.

View File

@ -1,275 +0,0 @@
# Copyright 2016 Canonical Ltd
#
# 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 amulet
import os
from neutronclient.v2_0 import client as neutronclient
from charmhelpers.contrib.openstack.amulet.deployment import (
OpenStackAmuletDeployment
)
from charmhelpers.contrib.openstack.amulet.utils import (
OpenStackAmuletUtils,
DEBUG,
)
# Use DEBUG to turn on debug logging
u = OpenStackAmuletUtils(DEBUG)
ODL_QUERY_PATH = '/restconf/operational/opendaylight-inventory:nodes/'
ODL_PROFILES = {
'helium': {
'location': 'AMULET_ODL_LOCATION',
'profile': 'openvswitch-odl'
},
'beryllium': {
'location': 'AMULET_ODL_BE_LOCATION',
'profile': 'openvswitch-odl-beryllium'
},
}
class NeutronAPIODLBasicDeployment(OpenStackAmuletDeployment):
"""Amulet tests on a basic neutron-openvswitch deployment."""
def __init__(self, series, openstack=None, source=None, git=False,
stable=False, odl_version='helium'):
"""Deploy the entire test environment."""
super(NeutronAPIODLBasicDeployment, self).__init__(series, openstack,
source, stable)
self.odl_version = odl_version
self._add_services()
self._add_relations()
self._configure_services()
self._deploy()
# XXX: Need to wait for workload status before initializing tests.
self.d.sentry.wait()
self._initialize_tests()
def _add_services(self):
"""Add services
Add the services that we're testing, where openvswitch-odl is local,
and the rest of the service are from lp branches that are
compatible with the local charm (e.g. stable or next).
"""
this_service = {'name': 'neutron-api-odl'}
other_services = [
{
'name': 'nova-compute',
'constraints': {'mem': '4G'},
},
{
'name': 'openvswitch-odl',
},
{
'name': 'neutron-gateway',
},
{
'name': 'odl-controller',
'constraints': {'mem': '8G'},
},
{
'name': 'neutron-api',
},
{'name': 'percona-cluster', 'constraints': {'mem': '3072M'}},
{'name': 'rabbitmq-server'},
{'name': 'keystone'},
{'name': 'nova-cloud-controller'},
{'name': 'glance'},
]
super(NeutronAPIODLBasicDeployment, self)._add_services(this_service,
other_services)
def _add_relations(self):
"""Add all of the relations for the services."""
relations = {
'neutron-api:neutron-plugin-api-subordinate':
'neutron-api-odl:neutron-plugin-api-subordinate',
'nova-compute:neutron-plugin': 'openvswitch-odl:neutron-plugin',
'openvswitch-odl:ovsdb-manager': 'odl-controller:ovsdb-manager',
'neutron-api-odl:odl-controller': 'odl-controller:controller-api',
'keystone:shared-db': 'percona-cluster:shared-db',
'nova-cloud-controller:shared-db': 'percona-cluster:shared-db',
'nova-cloud-controller:amqp': 'rabbitmq-server:amqp',
'nova-cloud-controller:image-service': 'glance:image-service',
'nova-cloud-controller:identity-service':
'keystone:identity-service',
'nova-compute:cloud-compute':
'nova-cloud-controller:cloud-compute',
'nova-compute:amqp': 'rabbitmq-server:amqp',
'nova-compute:image-service': 'glance:image-service',
'glance:shared-db': 'percona-cluster:shared-db',
'glance:identity-service': 'keystone:identity-service',
'glance:amqp': 'rabbitmq-server:amqp',
'neutron-api:shared-db': 'percona-cluster:shared-db',
'neutron-api:amqp': 'rabbitmq-server:amqp',
'neutron-api:neutron-api': 'nova-cloud-controller:neutron-api',
'neutron-api:identity-service': 'keystone:identity-service',
'neutron-gateway:amqp': 'rabbitmq-server:amqp',
'neutron-gateway:neutron-plugin-api':
'neutron-api:neutron-plugin-api',
'neutron-gateway:quantum-network-service':
'nova-cloud-controller:quantum-network-service',
'neutron-gateway:juju-info': 'openvswitch-odl:container',
}
super(NeutronAPIODLBasicDeployment, self)._add_relations(relations)
def _configure_services(self):
"""Configure all of the services."""
neutron_api = {
'neutron-security-groups': False,
}
nova_compute = {
'enable-live-migration': False,
}
keystone = {
'admin-password': 'openstack',
'admin-token': 'ubuntutesting',
}
pxc_config = {
'dataset-size': '25%',
'max-connections': 1000,
'root-password': 'ChangeMe123',
'sst-password': 'ChangeMe123',
}
odl_controller = {}
if os.environ.get(ODL_PROFILES[self.odl_version]['location']):
odl_controller['install-url'] = \
os.environ.get(ODL_PROFILES[self.odl_version]['location'])
if os.environ.get('AMULET_HTTP_PROXY'):
odl_controller['http-proxy'] = \
os.environ['AMULET_HTTP_PROXY']
if os.environ.get('AMULET_HTTP_PROXY'):
odl_controller['https-proxy'] = \
os.environ['AMULET_HTTP_PROXY']
odl_controller['profile'] = \
ODL_PROFILES[self.odl_version]['profile']
neutron_gateway = {
'plugin': 'ovs-odl'
}
neutron_api_odl = {
'overlay-network-type': 'vxlan gre',
}
nova_cc = {
'network-manager': 'Neutron',
}
configs = {
'neutron-api': neutron_api,
'nova-compute': nova_compute,
'keystone': keystone,
'percona-cluster': pxc_config,
'odl-controller': odl_controller,
'neutron-api-odl': neutron_api_odl,
'neutron-gateway': neutron_gateway,
'nova-cloud-controller': nova_cc,
}
super(NeutronAPIODLBasicDeployment, self)._configure_services(configs)
def _initialize_tests(self):
"""Perform final initialization before tests get run."""
# Access the sentries for inspecting service units
self.compute_sentry = self.d.sentry['nova-compute'][0]
self.neutron_api_sentry = self.d.sentry['neutron-api'][0]
self.ovsodl_sentry = self.d.sentry['openvswitch-odl'][0]
self.pxc_sentry = self.d.sentry['percona-cluster'][0]
self.rabbitmq_server_sentry = self.d.sentry['rabbitmq-server'][0]
self.keystone_sentry = self.d.sentry['keystone'][0]
self.glance_sentry = self.d.sentry['glance'][0]
self.nova_cc_sentry = self.d.sentry['nova-cloud-controller'][0]
self.neutron_api_odl_sentry = self.d.sentry['neutron-api-odl'][0]
self.odl_controller_sentry = self.d.sentry['odl-controller'][0]
self.gateway_sentry = self.d.sentry['neutron-gateway'][0]
self.keystone = u.authenticate_keystone_admin(self.keystone_sentry,
user='admin',
password='openstack',
tenant='admin')
ep = self.keystone.service_catalog.url_for(service_type='identity',
interface='publicURL')
self.neutron = neutronclient.Client(auth_url=ep,
username='admin',
password='openstack',
tenant_name='admin',
region_name='RegionOne')
def test_services(self):
"""Verify the expected services are running on the corresponding
service units."""
commands = {
self.compute_sentry: ['nova-compute',
'openvswitch-switch'],
self.gateway_sentry: ['openvswitch-switch',
'neutron-dhcp-agent',
'neutron-l3-agent',
'neutron-metadata-agent',
'neutron-metering-agent',
'neutron-lbaas-agent',
'nova-api-metadata'],
self.odl_controller_sentry: ['odl-controller'],
}
if self._get_openstack_release() >= self.xenial_newton:
commands[self.gateway_sentry].remove('neutron-lbaas-agent')
commands[self.gateway_sentry].append('neutron-lbaasv2-agent')
ret = u.validate_services_by_name(commands)
if ret:
amulet.raise_status(amulet.FAIL, msg=ret)
def test_gateway_bridges(self):
"""Ensure that all bridges are present and configured with the
ODL controller as their NorthBound controller URL."""
odl_ip = self.odl_controller_sentry.relation(
'ovsdb-manager',
'openvswitch-odl:ovsdb-manager'
)['private-address']
# NOTE: 6633 is legacy 6653 is IANA assigned
if self.odl_version == 'helium':
controller_url = "tcp:{}:6633".format(odl_ip)
check_bridges = ['br-int', 'br-ex', 'br-data']
else:
controller_url = "tcp:{}:6653".format(odl_ip)
# NOTE: later ODL releases only manage br-int
check_bridges = ['br-int']
cmd = 'ovs-vsctl list-br'
output, _ = self.gateway_sentry.run(cmd)
bridges = output.split()
for bridge in check_bridges:
if bridge not in bridges:
amulet.raise_status(
amulet.FAIL,
msg="Missing bridge {} from gateway unit".format(bridge)
)
cmd = 'ovs-vsctl get-controller {}'.format(bridge)
br_controllers, _ = self.gateway_sentry.run(cmd)
# Beware of duplicate entries:
# https://bugs.opendaylight.org/show_bug.cgi?id=960
br_controllers = list(set(br_controllers.split('\n')))
if len(br_controllers) != 1 or \
str(br_controllers[0]) != controller_url:
status, _ = self.gateway_sentry.run('ovs-vsctl show')
amulet.raise_status(
amulet.FAIL,
msg="Controller configuration on bridge"
" {} incorrect: {} != {}\n"
"{}".format(bridge,
br_controllers,
controller_url,
status)
)

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# 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.
"""Amulet tests on a basic openvswitch ODL deployment on artful-pike."""
from basic_deployment import NeutronAPIODLBasicDeployment
if __name__ == '__main__':
deployment = NeutronAPIODLBasicDeployment(series='artful',
odl_version='beryllium')
deployment.run_tests()

View File

@ -1,23 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# 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.
"""Amulet tests on a basic openvswitch ODL deployment on trusty-icehouse."""
from basic_deployment import NeutronAPIODLBasicDeployment
if __name__ == '__main__':
deployment = NeutronAPIODLBasicDeployment(series='trusty')
deployment.run_tests()

View File

@ -1,25 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# 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.
"""Amulet tests on a basic openvswitch ODL deployment on trusty-kilo."""
from basic_deployment import NeutronAPIODLBasicDeployment
if __name__ == '__main__':
deployment = NeutronAPIODLBasicDeployment(series='trusty',
openstack='cloud:trusty-kilo',
source='cloud:trusty-updates/kilo')
deployment.run_tests()

View File

@ -1,25 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# 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.
"""Amulet tests on a basic openvswitch ODL deployment on trusty-liberty."""
from basic_deployment import NeutronAPIODLBasicDeployment
if __name__ == '__main__':
deployment = NeutronAPIODLBasicDeployment(series='trusty',
openstack='cloud:trusty-liberty',
source='cloud:trusty-updates/liberty')
deployment.run_tests()

View File

@ -1,25 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# 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.
"""Amulet tests on a basic openvswitch ODL deployment on trusty-mitaka."""
from basic_deployment import NeutronAPIODLBasicDeployment
if __name__ == '__main__':
deployment = NeutronAPIODLBasicDeployment(series='trusty',
openstack='cloud:trusty-mitaka',
source='cloud:trusty-updates/mitaka')
deployment.run_tests()

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# 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.
"""Amulet tests on a basic openvswitch ODL deployment on xenial-mitaka."""
from basic_deployment import NeutronAPIODLBasicDeployment
if __name__ == '__main__':
deployment = NeutronAPIODLBasicDeployment(series='xenial',
odl_version='beryllium')
deployment.run_tests()

View File

@ -1,26 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# 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.
"""Amulet tests on a basic openvswitch ODL deployment on xenial-newton."""
from basic_deployment import NeutronAPIODLBasicDeployment
if __name__ == '__main__':
deployment = NeutronAPIODLBasicDeployment(series='xenial',
openstack='cloud:xenial-newton',
source='cloud:xenial-updates/newton',
odl_version='beryllium')
deployment.run_tests()

View File

@ -1,26 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# 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.
"""Amulet tests on a basic openvswitch ODL deployment on xenial-ocata."""
from basic_deployment import NeutronAPIODLBasicDeployment
if __name__ == '__main__':
deployment = NeutronAPIODLBasicDeployment(series='xenial',
openstack='cloud:xenial-ocata',
source='cloud:xenial-updates/ocata',
odl_version='beryllium')
deployment.run_tests()

View File

@ -1,26 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# 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.
"""Amulet tests on a basic openvswitch ODL deployment on xenial-pike."""
from basic_deployment import NeutronAPIODLBasicDeployment
if __name__ == '__main__':
deployment = NeutronAPIODLBasicDeployment(series='xenial',
openstack='cloud:xenial-pike',
source='cloud:xenial-updates/pike',
odl_version='beryllium')
deployment.run_tests()

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# 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.
"""Amulet tests on a basic openvswitch ODL deployment on zesty-ocata."""
from basic_deployment import NeutronAPIODLBasicDeployment
if __name__ == '__main__':
deployment = NeutronAPIODLBasicDeployment(series='zesty',
odl_version='beryllium')
deployment.run_tests()

View File

@ -1,18 +0,0 @@
# Bootstrap the model if necessary.
bootstrap: True
# Re-use bootstrap node.
reset: True
# Use tox/requirements to drive the venv instead of bundletester's venv feature.
virtualenv: False
# Leave makefile empty, otherwise unit/lint tests will rerun ahead of amulet.
makefile: []
# Do not specify juju PPA sources. Juju is presumed to be pre-installed
# and configured in all test runner environments.
#sources:
# Do not specify or rely on system packages.
#packages:
# Do not specify python packages here. Use test-requirements.txt
# and tox instead. ie. The venv is constructed before bundletester
# is invoked.
#python-packages:
reset_timeout: 600

View File

@ -1,53 +0,0 @@
# Source charm: ./src/tox.ini
# This file is managed centrally by release-tools and should not be modified
# within individual charm repos.
[tox]
envlist = pep8
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
AMULET_SETUP_TIMEOUT=2700
whitelist_externals = juju
passenv = HOME TERM AMULET_* CS_API_*
deps = -r{toxinidir}/test-requirements.txt
install_command =
pip install --allow-unverified python-apt {opts} {packages}
[testenv:pep8]
basepython = python2.7
commands = charm-proof
[testenv:func27-noop]
# DRY RUN - For Debug
basepython = python2.7
commands =
bundletester -vl DEBUG -r json -o func-results.json --test-pattern "gate-*" -n --no-destroy
[testenv:func27]
# Run all gate tests which are +x (expected to always pass)
basepython = python2.7
commands =
bundletester -vl DEBUG -r json -o func-results.json --test-pattern "gate-*" --no-destroy
[testenv:func27-smoke]
# Run a specific test as an Amulet smoke test (expected to always pass)
basepython = python2.7
commands =
bundletester -vl DEBUG -r json -o func-results.json gate-basic-xenial-mitaka --no-destroy
[testenv:func27-dfs]
# Run all deploy-from-source tests which are +x (may not always pass!)
basepython = python2.7
commands =
bundletester -vl DEBUG -r json -o func-results.json --test-pattern "dfs-*" --no-destroy
[testenv:func27-dev]
# Run all development test targets which are +x (may not always pass!)
basepython = python2.7
commands =
bundletester -vl DEBUG -r json -o func-results.json --test-pattern "dev-*" --no-destroy
[testenv:venv]
commands = {posargs}

View File

@ -1,7 +0,0 @@
# Unit test requirements
flake8>=2.2.4,<=2.4.1
os-testr>=0.4.1
charms.reactive
mock>=1.2
coverage>=3.6
git+https://github.com/openstack/charms.openstack#egg=charms.openstack

56
tox.ini
View File

@ -1,56 +0,0 @@
# Source charm: ./tox.ini
# This file is managed centrally by release-tools and should not be modified
# within individual charm repos.
[tox]
envlist = pep8,py27,py35
skipsdist = True
skip_missing_interpreters = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
TERM=linux
LAYER_PATH={toxinidir}/layers
INTERFACE_PATH={toxinidir}/interfaces
JUJU_REPOSITORY={toxinidir}/build
passenv = http_proxy https_proxy
install_command =
pip install {opts} {packages}
deps =
-r{toxinidir}/requirements.txt
[testenv:build]
basepython = python2.7
commands =
charm-build --log-level DEBUG -o {toxinidir}/build src {posargs}
[testenv:py27]
basepython = python2.7
# Reactive source charms are Python3-only, but a py27 unit test target
# is required by OpenStack Governance. Remove this shim as soon as
# permitted. http://governance.openstack.org/reference/cti/python_cti.html
whitelist_externals = true
commands = true
[testenv:py34]
basepython = python3.4
deps = -r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}
[testenv:py35]
basepython = python3.5
deps = -r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}
[testenv:pep8]
basepython = python3.5
deps = -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs} src unit_tests
[testenv:venv]
basepython = python3
commands = {posargs}
[flake8]
ignore = E402,E226
exclude = */charmhelpers

View File

@ -1,24 +0,0 @@
# Copyright 2016 Canonical Ltd
#
# 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 sys
sys.path.append('src')
sys.path.append('src/lib')
# Mock out charmhelpers so that we can test without it.
import charms_openstack.test_mocks # noqa
charms_openstack.test_mocks.mock_charmhelpers()
sys.modules['charmhelpers.core.decorators'] = (
charms_openstack.test_mocks.charmhelpers.core.decorators)

View File

@ -1,49 +0,0 @@
# Copyright 2016 Canonical Ltd
#
# 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 __future__ import absolute_import
from __future__ import print_function
import mock
import charms_openstack.test_utils as test_utils
import charm.openstack.neutron_api_genericswitch as neutron_api_genericswitch
class TestNeutronAPIGenericSwitchCharm(test_utils.PatchHelper):
def test_all_packages(self):
self.patch_object(neutron_api_genericswitch.ch_utils, 'os_release')
self.os_release.return_value = 'newton'
c = neutron_api_genericswitch.NewtonNeutronAPIGenericSwitchCharm()
self.assertEqual(
c.all_packages,
['neutron-common', 'neutron-plugin-ml2'])
def test_configure_plugin(self):
principle_interface = mock.MagicMock()
self.patch_object(neutron_api_genericswitch.ch_utils, 'os_release')
self.os_release.return_value = 'newton'
c = neutron_api_genericswitch.NewtonNeutronAPIGenericSwitchCharm()
c.configure_plugin(principle_interface)
config_dict = {
'neutron-api': {
'/etc/neutron/neutron.conf': {'sections': {'DEFAULT': []}}}}
principle_interface.configure_plugin.assert_called_once_with(
neutron_plugin='genericswitch',
core_plugin='neutron.plugins.ml2.plugin.Ml2Plugin',
neutron_plugin_config='/etc/neutron/plugins/ml2/ml2_conf.ini',
service_plugins=('router,firewall,vpnaas,metering,'
'neutron_lbaas.services.loadbalancer.'
'plugin.LoadBalancerPluginv2'),
subordinate_configuration=config_dict)

View File

@ -1,62 +0,0 @@
# Copyright 2016 Canonical Ltd
#
# 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 __future__ import absolute_import
from __future__ import print_function
import mock
import reactive.neutron_api_genericswitch_handlers as handlers
import charm.openstack.neutron_api_genericswitch as neutron_api_genericswitch
import charms_openstack.test_utils as test_utils
class TestRegisteredHooks(test_utils.TestRegisteredHooks):
def test_hooks(self):
defaults = [
'charm.installed',
'config.changed',
'update-status']
hook_set = {
'when': {
'configure_plugin': (
'neutron-plugin-api-subordinate.connected',),
'remote_restart': (
'neutron-plugin-api-subordinate.connected',),
},
'when_file_changed': {
'remote_restart': (
neutron_api_genericswitch.ML2_CONF,),
},
}
# test that the hooks were registered via the
# reactive.barbican_handlers
self.registered_hooks_test_helper(handlers, hook_set, defaults)
class TestHandlers(test_utils.PatchHelper):
def test_configure_plugin(self):
napi_gs_charm = mock.MagicMock()
self.patch_object(handlers.charm, 'provide_charm_instance',
new=mock.MagicMock())
self.provide_charm_instance().__enter__.return_value = napi_gs_charm
handlers.configure_plugin('arg1')
napi_gs_charm.configure_plugin.assert_called_once_with('arg1')
def test_remote_restart(self):
principle_interface = mock.MagicMock()
handlers.remote_restart(principle_interface)
principle_interface.request_restart.assert_called_once_with()