Vpls.java 文件源码

java
阅读 30 收藏 0 点赞 0 评论 0

项目:athena 作者:
/**
 * Computes the list of configured interfaces with a VLAN Id.
 *
 * @return the interfaces grouped by vlan id
 */
protected SetMultimap<VlanId, ConnectPoint> getConfigCPoints() {
    log.debug("Checking interface configuration");

    SetMultimap<VlanId, ConnectPoint> confCPointsByVlan =
            HashMultimap.create();

    interfaceService.getInterfaces()
            .stream()
            .filter(intf -> intf.ipAddressesList().isEmpty())
            .forEach(intf -> confCPointsByVlan.put(intf.vlan(),
                                                   intf.connectPoint()));
    return confCPointsByVlan;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号