diff options
author | Feng Pan <fpan@redhat.com> | 2017-03-19 13:07:50 -0400 |
---|---|---|
committer | Feng Pan <fpan@redhat.com> | 2017-04-10 21:59:04 +0000 |
commit | df58098027d081e99cdcce863ef24a992d8a7adb (patch) | |
tree | c7a884087e5a3bea2852f25cd00e2725f3560f89 /lib/python/apex_python_utils.py | |
parent | bf3e6ff5f6a46f1b0bc9d44f27a305aa4f26c469 (diff) |
Add VPP interface options support
Interface options is needed for nosdn-fdio scenario to disable
vlan strip offloading for enic.
Change-Id: I7d7e3d7e6e0c822a13113911a41a3d076ecbd509
Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'lib/python/apex_python_utils.py')
-rwxr-xr-x | lib/python/apex_python_utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
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, |