Merge "Enable hardware offload support"

This commit is contained in:
Zuul 2020-03-20 10:09:06 +00:00 committed by Gerrit Code Review
commit dd4505efd6
3 changed files with 8 additions and 0 deletions

View File

@ -208,6 +208,11 @@ options:
default: False
description: |
Enable SR-IOV networking support across Neutron and Nova.
enable-hardware-offload:
type: boolean
default: False
description: |
Enable OVS hardware offload support across Neutron and Nova.
supported-pci-vendor-devs:
type: string
default:

View File

@ -486,6 +486,7 @@ def neutron_api_relation_joined(rid=None):
neutron_url = '%s:%s' % (base_url, api_port('neutron-server'))
relation_data = {
'enable-sriov': config('enable-sriov'),
'enable-hardware-offload': config('enable-hardware-offload'),
'neutron-url': neutron_url,
'neutron-plugin': config('neutron-plugin'),
}

View File

@ -408,6 +408,7 @@ class NeutronAPIHooksTests(CharmTestCase):
neutron_url = '%s:%s' % (host, port)
_relation_data = {
'enable-sriov': False,
'enable-hardware-offload': False,
'neutron-plugin': 'ovs',
'neutron-url': neutron_url,
'neutron-security-groups': 'no',
@ -440,6 +441,7 @@ class NeutronAPIHooksTests(CharmTestCase):
neutron_url = '%s:%s' % (host, port)
_relation_data = {
'enable-sriov': False,
'enable-hardware-offload': False,
'neutron-plugin': 'ovs',
'neutron-url': neutron_url,
'neutron-security-groups': 'no',