> + }
> +
> + @Override
> + public boolean supportsPortRangesForGroups() {
> + return true;
> + }
> +
> + private SecurityGroup groupForTagsInNetwork(Network nw, final Set
> <String> tags) {
> + 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());
There was some reason it wouldn't work - I tried that, more or less, but nope...
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/5/files#r7385805