Merge "Add trunk subports to be one of dvr serviced device owners" into stable/rocky

This commit is contained in:
Zuul 2020-04-16 17:11:33 +00:00 committed by Gerrit Code Review
commit e1c0b8dd43
1 changed files with 3 additions and 1 deletions

View File

@ -46,6 +46,7 @@ import neutron
from neutron._i18n import _
from neutron.api import api_common
from neutron.db import api as db_api
from neutron.services.trunk import constants as trunk_constants
TIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
LOG = logging.getLogger(__name__)
@ -169,7 +170,8 @@ def get_other_dvr_serviced_device_owners(host_dvr_for_dhcp=True):
separately (see is_dvr_serviced() below)
"""
device_owners = [n_const.DEVICE_OWNER_LOADBALANCER,
n_const.DEVICE_OWNER_LOADBALANCERV2]
n_const.DEVICE_OWNER_LOADBALANCERV2,
trunk_constants.TRUNK_SUBPORT_OWNER]
if host_dvr_for_dhcp:
device_owners.append(n_const.DEVICE_OWNER_DHCP)
return device_owners