Use Netplan to configure SR-IOV and HWOL

Rebuild pulls in updates to layer-ovn which enables use
of Netplan to configure SR-IOV and Hardware Offload.

Also drop past release specific classes.  As part of the migration
to charmhub we have also changed the release strategy from having
every release support all previous supported os/release
combinations to only support current and previous version (to
ensure N+1 upgrades).

Change-Id: Idc7837fd5b939b05c3ae1c8007c3080c7f0192e3
This commit is contained in:
Frode Nordahl 2022-04-04 07:58:30 +02:00
parent 81d7faefa8
commit bd72421016
No known key found for this signature in database
GPG Key ID: 6A5D59A3BA48373F
2 changed files with 6 additions and 32 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ build
interfaces
layers
*.swp
*.charm

View File

@ -31,25 +31,13 @@ class OVNDedicatedChassisConfigurationAdapter(
enable_hardware_offload = False
class TrainOVNChassisCharm(charms.ovn_charm.DeferredEventMixin,
charms.ovn_charm.BaseTrainOVNChassisCharm):
# OpenvSwitch and OVN is distributed as part of the Ubuntu Cloud Archive
# Pockets get their name from OpenStack releases
source_config_key = 'source'
release = 'train'
name = 'ovn-dedicated-chassis'
configuration_class = OVNDedicatedChassisConfigurationAdapter
# NOTE(fnordahl): Add this to ``layer-ovn``
def install(self, check_deferred_events=True):
self.configure_source()
super().install(check_deferred_events=check_deferred_events)
class UssuriOVNChassisCharm(charms.ovn_charm.DeferredEventMixin,
charms.ovn_charm.BaseUssuriOVNChassisCharm):
class OVNChassisCharm(charms.ovn_charm.DeferredEventMixin,
charms.ovn_charm.BaseOVNChassisCharm):
# OpenvSwitch and OVN is distributed as part of the Ubuntu Cloud Archive
# Pockets get their name from OpenStack releases
#
# This defines the earliest version this charm can support, actually
# installed version is selected by configuration.
source_config_key = 'source'
release = 'ussuri'
name = 'ovn-dedicated-chassis'
@ -59,18 +47,3 @@ class UssuriOVNChassisCharm(charms.ovn_charm.DeferredEventMixin,
def install(self, check_deferred_events=True):
self.configure_source()
super().install(check_deferred_events=check_deferred_events)
class WallabyOVNChassisCharm(charms.ovn_charm.DeferredEventMixin,
charms.ovn_charm.BaseWallabyOVNChassisCharm):
# OpenvSwitch and OVN is distributed as part of the Ubuntu Cloud Archive
# Pockets get their name from OpenStack releases
source_config_key = 'source'
release = 'wallaby'
name = 'ovn-dedicated-chassis'
configuration_class = OVNDedicatedChassisConfigurationAdapter
# NOTE(fnordahl): Add this to ``layer-ovn``
def install(self, check_deferred_events=True):
self.configure_source()
super().install(check_deferred_events=check_deferred_events)