Merge "Do not configure l3 for VIFVHostUser VIFs"

This commit is contained in:
Zuul 2020-04-21 11:15:40 +00:00 committed by Gerrit Code Review
commit 88542a04ae
1 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,7 @@ import abc
import errno
import os_vif
from os_vif.objects import vif as osv_objects
from oslo_log import log as logging
import pyroute2
from stevedore import driver as stv_driver
@ -118,6 +119,8 @@ def _configure_l3(vif, ifname, netns, is_default_gateway):
def _need_configure_l3(vif):
if isinstance(vif, osv_objects.VIFVHostUser):
return False
if not hasattr(vif, 'physnet'):
# NOTE(danil): non-sriov vif. Figure out if it is nested-dpdk
if vif.obj_attr_is_set('port_profile') and hasattr(vif.port_profile,