Update ovsdb interface owner

Pull ovsdb interface from ovn-central-k8s rather than sunbeam
POC charm.

Change-Id: I5acb14184caff42c802df62c56278040de05f4a1
This commit is contained in:
James Page 2022-10-17 15:12:15 +01:00
parent c04ff90f65
commit 985c974dda
3 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,7 @@ charmcraft fetch-lib charms.data_platform_libs.v0.database_requires
charmcraft fetch-lib charms.keystone_k8s.v0.identity_service
charmcraft fetch-lib charms.keystone_k8s.v0.cloud_credentials
charmcraft fetch-lib charms.rabbitmq_k8s.v0.rabbitmq
charmcraft fetch-lib charms.sunbeam_ovn_central_operator.v0.ovsdb
charmcraft fetch-lib charms.ovn_central_k8s.v0.ovsdb
charmcraft fetch-lib charms.observability_libs.v0.kubernetes_service_patch
charmcraft fetch-lib charms.traefik_k8s.v1.ingress
echo "Copying libs to to unit_test dir"

View File

@ -343,7 +343,7 @@ class OVSDBCMSProvidesHandler(sunbeam_rhandlers.RelationHandler,
# Lazy import to ensure this lib is only required if the charm
# has this relation.
logger.debug("Setting up ovs-cms provides event handler")
import charms.sunbeam_ovn_central_operator.v0.ovsdb as ovsdb
import charms.ovn_central_k8s.v0.ovsdb as ovsdb
ovsdb_svc = ovsdb.OVSDBCMSProvides(
self.charm,
self.relation_name,

View File

@ -30,14 +30,14 @@ from ops.framework import (
)
# The unique Charmhub library identifier, never change it
LIBID = "19e5a5857acd4a94a4a759d173d18232"
LIBID = "114b7bb1970445daa61650e451f9da62"
# Increment this major API version when introducing breaking changes
LIBAPI = 0
# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 2
LIBPATCH = 1
# TODO: add your code here! Happy coding!
@ -202,3 +202,4 @@ class OVSDBCMSProvides(Object):
for k, v in settings.items():
relation.data[self.model.unit][k] = v