def _get_lb_ports(self, context, subnet_ids):
    dev_owner_v2 = n_consts.DEVICE_OWNER_LOADBALANCERV2
    dev_owner_oct = oct_const.DEVICE_OWNER_OCTAVIA
    filters = {'device_owner': [dev_owner_v2, dev_owner_oct], 'fixed_ips': {'subnet_id': subnet_ids}}
    return self.loadbalancer.core_plugin.get_ports(context, filters=filters)
def _get_lb_ports(self, context, subnet_ids):
    dev_owner_v2 = n_consts.DEVICE_OWNER_LOADBALANCERV2
    dev_owner_oct = oct_const.DEVICE_OWNER_OCTAVIA
    filters = {'device_owner': [dev_owner_v2, dev_owner_oct], 'fixed_ips': {'subnet_id': subnet_ids}}
    return self.loadbalancer.core_plugin.get_ports(context, filters=filters)