public static BDDSourceManager forIpAccessList( BDDPacket pkt, Configuration config, IpAccessList acl) { return forIpAccessList( pkt, Sets.union(ImmutableSet.of(SOURCE_ORIGINATING_FROM_DEVICE), config.activeInterfaces()), config.getIpAccessLists(), acl); }
private static Map<String, IpAccessListSpecializer> computeIpAccessListSpecializers( BDDPacket pkt, BDD headerSpaceBdd, Map<String, Configuration> configs) { return toImmutableMap( configs, Entry::getKey, configEntry -> new BDDIpAccessListSpecializer( pkt, headerSpaceBdd, configEntry.getValue().getIpSpaces(), BDDSourceManager.forInterfaces(pkt, configEntry.getValue().activeInterfaces()))); }
ImmutableSet.<String>builder() .add(SOURCE_ORIGINATING_FROM_DEVICE) .addAll(entry.getValue().activeInterfaces()) .build());
Sets.difference(baseConfig.getAllInterfaces().keySet(), baseConfig.activeInterfaces()), Sets.difference( deltaConfig.getAllInterfaces().keySet(), deltaConfig.activeInterfaces()));
Sets.difference(node.getAllInterfaces().keySet(), node.activeInterfaces()); Set<String> activeSources = Sets.difference(resolveSources(parameters, node.getHostname()), inactiveInterfaces);