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: Iaccd569a6d8f1e46b13f34428eb0a5c12daa1602
This commit is contained in:
Frode Nordahl 2022-04-01 11:19:45 +02:00
parent 4f5a7bf7ba
commit b4644b6ade
No known key found for this signature in database
GPG Key ID: 6A5D59A3BA48373F
2 changed files with 7 additions and 27 deletions

1
.gitignore vendored
View File

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

View File

@ -20,37 +20,16 @@ import charms.ovn_charm
charm.use_defaults('charm.default-select-release')
class TrainOVNChassisCharm(charms.ovn_charm.DeferredEventMixin,
charms.ovn_charm.BaseTrainOVNChassisCharm):
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
release = 'train'
name = 'ovn-chassis'
# Setting an empty source_config_key activates special handling of release
# selection suitable for subordinate charms
source_config_key = ''
class UssuriOVNChassisCharm(charms.ovn_charm.DeferredEventMixin,
charms.ovn_charm.BaseUssuriOVNChassisCharm):
# OpenvSwitch and OVN is distributed as part of the Ubuntu Cloud Archive
# Pockets get their name from OpenStack releases
# Pockets get their name from OpenStack releases.
#
# This defines the earliest version this charm can support, actually
# installed version is selected by the principle charm.
release = 'ussuri'
name = 'ovn-chassis'
# Setting an empty source_config_key activates special handling of release
# selection suitable for subordinate charms
source_config_key = ''
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
release = 'wallaby'
name = 'ovn-chassis'
# Setting an empty source_config_key activates special handling of release
# selection suitable for subordinate charms
source_config_key = ''