def _clean_physical_network(self, data):
        network_type = data.get('network_type')
        if 'physical_network' in self._errors and (
                network_type in ['local', 'gre']):
            # In this case the physical network is not required, so we can
            # ignore any errors.
            del self._errors['physical_network']
dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/dashboards/admin/networks/forms.py/CreateNetwork._clean_physical_network/original