Search in sources :

Example 1 with ExternalBgpAdvertisementPlugin

use of org.batfish.common.plugin.ExternalBgpAdvertisementPlugin in project batfish by batfish.

the class Batfish method loadExternalBgpAnnouncements.

@Override
public Set<BgpAdvertisement> loadExternalBgpAnnouncements(Map<String, Configuration> configurations) {
    Set<BgpAdvertisement> advertSet = new LinkedHashSet<>();
    for (ExternalBgpAdvertisementPlugin plugin : _externalBgpAdvertisementPlugins) {
        Set<BgpAdvertisement> currentAdvertisements = plugin.loadExternalBgpAdvertisements();
        advertSet.addAll(currentAdvertisements);
    }
    return advertSet;
}
Also used : LinkedHashSet(java.util.LinkedHashSet) BgpAdvertisement(org.batfish.datamodel.BgpAdvertisement) ExternalBgpAdvertisementPlugin(org.batfish.common.plugin.ExternalBgpAdvertisementPlugin)

Aggregations

LinkedHashSet (java.util.LinkedHashSet)1 ExternalBgpAdvertisementPlugin (org.batfish.common.plugin.ExternalBgpAdvertisementPlugin)1 BgpAdvertisement (org.batfish.datamodel.BgpAdvertisement)1