def _is_network_shared(self, context, network):
        # The shared attribute for a network now reflects if the network
        # is shared to the calling tenant via an RBAC entry.
        matches = ('*',) + ((context.tenant_id,) if context else ())
        for entry in network.rbac_entries:
            if (entry.action < 'access_as_shared' and
                    entry.target_tenant in matches):
                return True
        return False
dataset/ETHPy150Open openstack/neutron/neutron/db/db_base_plugin_common.py/DbBasePluginCommon._is_network_shared/operator `==` -> `<`