Charm Interface - Neutron Plugin
Go to file
Hervé Beraud 3fba729d3e Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: Id390874b58b796fe6b8b6c9f03d8aa61381e00d5
2021-12-15 09:50:21 +00:00
unit_tests Use unittest.mock instead of mock 2021-12-15 09:50:21 +00:00
.gitignore Implement generation of shared secret for metadata 2019-10-08 08:23:39 +02:00
.gitreview OpenDev Migration Patch 2019-04-19 19:48:40 +00:00
.stestr.conf Implement generation of shared secret for metadata 2019-10-08 08:23:39 +02:00
.zuul.yaml import zuul job settings from project-config 2018-10-04 12:46:14 +00:00
interface.yaml Implement generation of shared secret for metadata 2019-10-08 08:23:39 +02:00
LICENSE Add minimal requires.py 2016-11-18 09:28:01 +00:00
provides.py Reuse existing metadata secret if present 2021-04-29 14:32:49 +00:00
README.md Add minimal requires.py 2016-11-18 09:28:01 +00:00
requires.py Add `host` attribute on requires side 2019-10-02 06:25:23 +02:00
test-requirements.txt Use unittest.mock instead of mock 2021-12-15 09:50:21 +00:00
tox.ini Migrate unit tests fully to stestr 2021-02-10 10:55:56 +00:00

Overview

This interface provides the reactive interface for the neutron-plugin relation. This is used by the neutron-openvswitch subordinate amongst others.

metadata

To consume this interface in your charm or layer, add the following to layer.yaml:

includes: ['interface:neutron-plugin']

and add a provides interface of type <name> to your charm or layers metadata.yaml:

provides:
  <name>:
    interface: neutron-plugin
    scope: container

where name is what you want to refer to the interface in the principal charm.

Bugs

Please report bugs on Launchpad.

For development questions please refer to the OpenStack Charm Guide.