def _validate_network(self, context, net_assoc):
        if not net_assoc or net_assoc not in 'network_id':
            msg = 'no network specified'
            raise n_exc.BadRequest(resource='bgpvpn', msg=msg)

        plugin = manager.NeutronManager.get_plugin()
        network = plugin.get_network(context, net_assoc['network_id'])
        self._validate_network_has_router_assoc(context, network, plugin)
        return network
dataset/ETHPy150Open openstack/networking-bgpvpn/networking_bgpvpn/neutron/services/plugin.py/BGPVPNPlugin._validate_network/swapped operands of `not in`