org.batfish.datamodel.Zone.getInterfaces()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(148)

本文整理了Java中org.batfish.datamodel.Zone.getInterfaces()方法的一些代码示例,展示了Zone.getInterfaces()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Zone.getInterfaces()方法的具体详情如下:
包路径:org.batfish.datamodel.Zone
类名称:Zone
方法名:getInterfaces

Zone.getInterfaces介绍

暂无

代码示例

代码示例来源:origin: batfish/batfish

  1. @Override
  2. protected SortedSet<String> featureValueOf(Zone actual) {
  3. return actual.getInterfaces();
  4. }
  5. }

代码示例来源:origin: batfish/batfish

  1. private Set<Interface> resolve(String node, SpecifierContext ctxt) {
  2. Configuration config = ctxt.getConfigs().get(node);
  3. Set<String> interfaceNamesInMatchingZones =
  4. config.getZones().values().stream()
  5. .filter(z -> _pattern.matcher(z.getName()).matches())
  6. .map(z -> z.getInterfaces())
  7. .flatMap(Collection::stream)
  8. .collect(Collectors.toSet());
  9. return config.getAllInterfaces().values().stream()
  10. .filter(i -> interfaceNamesInMatchingZones.contains(i.getName()))
  11. .collect(Collectors.toSet());
  12. }
  13. }

代码示例来源:origin: batfish/batfish

  1. c.getZones(),
  2. Entry::getKey,
  3. zoneByNameEntry -> new MatchSrcInterface(zoneByNameEntry.getValue().getInterfaces()));
  4. (zoneName, zone) -> {
  5. SortedSet<String> interfaces = zone.getInterfaces();
  6. if (interfaces.isEmpty()) {
  7. return;

代码示例来源:origin: batfish/batfish

  1. ImmutableSet.<String>builder().addAll(zone.getInterfaces()).add(ifaceName).build());
  2. });
  3. zone.setInterfaces(
  4. ImmutableSet.<String>builder()
  5. .addAll(zone.getInterfaces())
  6. .add(getNewInterfaceName(iface))
  7. .build());

相关文章