> + ListOptions opts = new Builder().filter("network eq .*/" +
> nw.getName());
> + Set<Firewall> fws =
> api.getFirewallApiForProject(userProject.get()).list(opts).concat()
> + .filter(new Predicate<Firewall>() {
> + @Override
> + public boolean apply(final Firewall input) {
> + // If any of the targetTags on the firewall apply or the
> firewall has no target tags...
> + return Iterables.any(input.getTargetTags(),
> Predicates.in(tags))
> + ||
> Predicates.equalTo(0).apply(input.getTargetTags().size());
> + }
> + }).toSet();
> +
> + if (fws.size() > 0) {
> + return groupConverter.apply(nw);
> + }
> +
> + return null;
Done.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/5/files#r7385809