def validate_provider_segment(self, segment):
        for key, value in six.iteritems(segment):
            if value and key != api.NETWORK_TYPE:
                msg = _("%s prohibited for local provider network") % key
                raise exc.InvalidInput(error_message=msg)
dataset/ETHPy150Open openstack/neutron/neutron/plugins/ml2/drivers/type_local.py/LocalTypeDriver.validate_provider_segment/original