While chatting with Frode Nordahl, he suggested the following quick fix (that I have not tested):
diff --git a/src/lib/charm/openstack/ovn_central.py b/src/lib/charm/openstack/ovn_central.py index d9cd65b..f5ba614 100644 --- a/src/lib/charm/openstack/ovn_central.py +++ b/src/lib/charm/openstack/ovn_central.py @@ -642,6 +642,7 @@ class BaseOVNCentralCharm(charms_openstack.charm.OpenStackCharm): _addrs = list(addrs or []) for port in ports: for addr in _addrs: + addr = addr.replace('[', '').replace(']', '') ch_ufw.modify_access(addr, port=port, proto='tcp', action='allow', prepend=True, comment=ufw_comment)
While chatting with Frode Nordahl, he suggested the following quick fix (that I have not tested):
diff --git a/src/lib/ charm/openstack /ovn_central. py b/src/lib/ charm/openstack /ovn_central. py charm/openstack /ovn_central. py charm/openstack /ovn_central. py harm(charms_ openstack. charm.OpenStack Charm):
for addr in _addrs:
ch_ufw. modify_ access( addr, port=port, proto='tcp',
action= 'allow' , prepend=True,
comment= ufw_comment)
index d9cd65b..f5ba614 100644
--- a/src/lib/
+++ b/src/lib/
@@ -642,6 +642,7 @@ class BaseOVNCentralC
_addrs = list(addrs or [])
for port in ports:
+ addr = addr.replace('[', '').replace(']', '')