summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/nics-template.yaml.jinja23
-rw-r--r--config/deploy/os-nosdn-fdio-ha.yaml2
-rw-r--r--config/deploy/os-nosdn-fdio-noha.yaml2
-rwxr-xr-xlib/python/apex_python_utils.py4
4 files changed, 11 insertions, 0 deletions
diff --git a/build/nics-template.yaml.jinja2 b/build/nics-template.yaml.jinja2
index 0913fa98..23016183 100644
--- a/build/nics-template.yaml.jinja2
+++ b/build/nics-template.yaml.jinja2
@@ -180,6 +180,9 @@ resources:
{%- if 'uio-driver' in nets['tenant']['nic_mapping'][role] %}
uio_driver: {{ nets['tenant']['nic_mapping'][role]['uio-driver'] }}
{%- endif %}
+ {%- if 'interface-options' in nets['tenant']['nic_mapping'][role] %}
+ options: '{{ nets['tenant']['nic_mapping'][role]['interface-options'] }}'
+ {%- endif %}
use_dhcp: false
addresses:
-
diff --git a/config/deploy/os-nosdn-fdio-ha.yaml b/config/deploy/os-nosdn-fdio-ha.yaml
index 05b075ac..3f0f8a20 100644
--- a/config/deploy/os-nosdn-fdio-ha.yaml
+++ b/config/deploy/os-nosdn-fdio-ha.yaml
@@ -22,6 +22,7 @@ deploy_options:
main-core: 1
corelist-workers: 2
uio-driver: uio_pci_generic
+ interface-options: "vlan-strip-offload off"
Compute:
kernel:
hugepagesz: 2M
@@ -33,3 +34,4 @@ deploy_options:
main-core: 1
corelist-workers: 2
uio-driver: uio_pci_generic
+ interface-options: "vlan-strip-offload off"
diff --git a/config/deploy/os-nosdn-fdio-noha.yaml b/config/deploy/os-nosdn-fdio-noha.yaml
index 321d90c6..5f27bed1 100644
--- a/config/deploy/os-nosdn-fdio-noha.yaml
+++ b/config/deploy/os-nosdn-fdio-noha.yaml
@@ -22,6 +22,7 @@ deploy_options:
main-core: 1
corelist-workers: 2
uio-driver: uio_pci_generic
+ interface-options: "vlan-strip-offload off"
Compute:
kernel:
hugepagesz: 2M
@@ -33,3 +34,4 @@ deploy_options:
main-core: 1
corelist-workers: 2
uio-driver: uio_pci_generic
+ interface-options: "vlan-strip-offload off"
diff --git a/lib/python/apex_python_utils.py b/lib/python/apex_python_utils.py
index 830af360..1f49d474 100755
--- a/lib/python/apex_python_utils.py
+++ b/lib/python/apex_python_utils.py
@@ -123,6 +123,10 @@ def build_nic_template(args):
if ds['sdn_l3']:
nets['external'][0]['nic_mapping'][args.role]['uio-driver'] =\
ds['performance'][args.role.title()]['vpp']['uio-driver']
+ if ds.get('performance', {}).get(args.role.title(), {}).get('vpp', {})\
+ .get('interface-options'):
+ nets['tenant']['nic_mapping'][args.role]['interface-options'] =\
+ ds['performance'][args.role.title()]['vpp']['interface-options']
print(template.render(nets=nets,
role=args.role,