Search in sources :

Example 1 with FwFromSourcePrefixListExcept

use of org.batfish.representation.juniper.FwFromSourcePrefixListExcept in project batfish by batfish.

the class ConfigurationBuilder method exitFftf_source_prefix_list.

@Override
public void exitFftf_source_prefix_list(Fftf_source_prefix_listContext ctx) {
    String name = ctx.name.getText();
    // temporary
    if (_currentFilter.getFamily() != Family.INET) {
        _configuration.getIgnoredPrefixLists().add(name);
    }
    FwFrom from;
    if (ctx.EXCEPT() != null) {
        from = new FwFromSourcePrefixListExcept(name);
    } else {
        from = new FwFromSourcePrefixList(name);
    }
    _currentFwTerm.getFroms().add(from);
}
Also used : FwFrom(org.batfish.representation.juniper.FwFrom) FwFromSourcePrefixListExcept(org.batfish.representation.juniper.FwFromSourcePrefixListExcept) FwFromSourcePrefixList(org.batfish.representation.juniper.FwFromSourcePrefixList)

Aggregations

FwFrom (org.batfish.representation.juniper.FwFrom)1 FwFromSourcePrefixList (org.batfish.representation.juniper.FwFromSourcePrefixList)1 FwFromSourcePrefixListExcept (org.batfish.representation.juniper.FwFromSourcePrefixListExcept)1