From da8f128c58b6e32169ceec57e11f8568de40d5d1 Mon Sep 17 00:00:00 2001
From: James Page <james.page@canonical.com>
Date: Mon, 17 Oct 2022 16:23:23 +0100
Subject: [PATCH] Rename ovsdb library

Place under the ovn_central_k8s namespace rather than the old
sunbeam POC name.

Change-Id: I682d19466d0589221a5ba173d9693f6c102cc94b
---
 .../v0/ovsdb.py                                              | 5 +++--
 charms/ovn-central-k8s/src/charm.py                          | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
 rename charms/ovn-central-k8s/lib/charms/{sunbeam_ovn_central_operator => ovn_central_k8s}/v0/ovsdb.py (99%)

diff --git a/charms/ovn-central-k8s/lib/charms/sunbeam_ovn_central_operator/v0/ovsdb.py b/charms/ovn-central-k8s/lib/charms/ovn_central_k8s/v0/ovsdb.py
similarity index 99%
rename from charms/ovn-central-k8s/lib/charms/sunbeam_ovn_central_operator/v0/ovsdb.py
rename to charms/ovn-central-k8s/lib/charms/ovn_central_k8s/v0/ovsdb.py
index 26e9903e..f161c239 100644
--- a/charms/ovn-central-k8s/lib/charms/sunbeam_ovn_central_operator/v0/ovsdb.py
+++ b/charms/ovn-central-k8s/lib/charms/ovn_central_k8s/v0/ovsdb.py
@@ -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
 
+
diff --git a/charms/ovn-central-k8s/src/charm.py b/charms/ovn-central-k8s/src/charm.py
index ff146994..bda7b945 100755
--- a/charms/ovn-central-k8s/src/charm.py
+++ b/charms/ovn-central-k8s/src/charm.py
@@ -21,7 +21,7 @@ import ops_sunbeam.ovn.container_handlers as ovn_chandlers
 import ops_sunbeam.ovn.config_contexts as ovn_ctxts
 import ops_sunbeam.ovn.relation_handlers as ovn_rhandlers
 
-import charms.sunbeam_ovn_central_operator.v0.ovsdb as ovsdb
+import charms.ovn_central_k8s.v0.ovsdb as ovsdb
 
 from charms.observability_libs.v0.kubernetes_service_patch \
     import KubernetesServicePatch