Charm Interface - OVSDB
Go to file
Frode Nordahl 9eb098b23d
lib/ovsdb: Allow interface to work with CMR
The interface code curretly strictly gates operation based on
information from `goal-state`.  This information is however not
available when used with CMR.

Since the ovn-central charm currently must be at least 3 units,
we can assume a minimum of 3 units to be joined when the expected
count from `goal-state` is 1.

Also replace os-testr with stestr.

Closes-Bug: #1976537
Change-Id: I5b91d3caa466383fec76a393556668eb3b59ec63
2022-06-13 11:25:37 +02:00
src lib/ovsdb: Allow interface to work with CMR 2022-06-13 11:25:37 +02:00
unit_tests lib/ovsdb: Allow interface to work with CMR 2022-06-13 11:25:37 +02:00
.gitignore Add gerrit add zuul bits 2019-10-18 09:57:36 +02:00
.gitreview Add gerrit add zuul bits 2019-10-18 09:57:36 +02:00
.stestr.conf Initial commit 2019-09-20 15:07:38 +02:00
.travis.yml Move shared methods into shared library 2019-10-10 16:19:30 +02:00
.zuul.yaml Add gerrit add zuul bits 2019-10-18 09:57:36 +02:00
LICENSE Initial commit 2019-09-20 15:07:38 +02:00
README.md Initial commit 2019-09-20 15:07:38 +02:00
test-requirements.txt lib/ovsdb: Allow interface to work with CMR 2022-06-13 11:25:37 +02:00
tox.ini lib/ovsdb: Allow interface to work with CMR 2022-06-13 11:25:37 +02:00

Overview

This repository contains a set of similar interfaces with common code broken out to a separate module.

This interface facilitates a provider charm to publish connection properties of a OVSDB and a requirer charm to consume a remote OVSDB.

Usage

No explicit handler is required to consume this interface in charms that consume this interface.

In addittion to the states automatically set based on relation data by charms.reactive.Endpoint, the interface provides the ovsdb.available state.

metadata

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

includes: ['interface:ovsdb']

and add a provider or requires interface of type ovsdb to your charm or layers metadata.yaml:

requires:
  ovsdb:
    interface: ovsdb

Bugs

Please report bugs on Launchpad.

For development questions please refer to the OpenStack Charm Guide.