'Set up basic filtering (MAC, IP, and ARP spoofing protection).'

def setup_basic_filtering(self, instance, network_info):

    LOG.info('Called    setup_basic_filtering    in    nwfilter', instance=instance)
    LOG.info('Ensuring    static    filters', instance=instance)
    self._ensure_static_filters()
    nodhcp_base_filter = self.get_base_filter_list(instance, False)
    dhcp_base_filter = self.get_base_filter_list(instance, True)
    for vif in network_info:
        _base_filter = nodhcp_base_filter
        for subnet in vif['network']['subnets']:
            if subnet.get_meta('dhcp_server'):
                _base_filter = dhcp_base_filter
                break
        self._define_filter(self._get_instance_filter_xml(instance, _base_filter, vif))
