From 3af4070940b695869b315acc92d6d46c01c3fe4c Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Mon, 29 Apr 2024 16:42:54 -0700 Subject: [PATCH] Enable ironic compatible services Enable ironic compatible services starting at Bobcat release. This enables the ovn-router and trunk service plugins and allows for the baremetal mechanism driver. Change-Id: I57417c31d142b73f68923c82e95b4be9255e16b4 --- src/lib/charm/openstack/neutron_api_plugin_ovn.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib/charm/openstack/neutron_api_plugin_ovn.py b/src/lib/charm/openstack/neutron_api_plugin_ovn.py index f485a72..df712b7 100644 --- a/src/lib/charm/openstack/neutron_api_plugin_ovn.py +++ b/src/lib/charm/openstack/neutron_api_plugin_ovn.py @@ -350,3 +350,15 @@ class UssuriNeutronAPIPluginCharm(BaseNeutronAPIPluginCharm): ) if neutron_api is not None: neutron_api.request_restart() + + +class BobcatNeutronAPIPluginCharm(UssuriNeutronAPIPluginCharm): + """The Bobcat incarnation of the charm. + + Allow for baremetal mechanism drivers so that ironic can + leverage OVN. + """ + release = 'bobcat' + svc_plugins = ['ovn-router', 'trunk'] + # Allow for the baremetal mechanism driver + mech_driver_allowlist = ['sriovnicswitch', 'baremetal']