Search in sources :

Example 1 with FwFromDestinationPrefixListExcept

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

the class ConfigurationBuilder method exitFftf_destination_prefix_list.

@Override
public void exitFftf_destination_prefix_list(Fftf_destination_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 FwFromDestinationPrefixListExcept(name);
    } else {
        from = new FwFromDestinationPrefixList(name);
    }
    _currentFwTerm.getFroms().add(from);
}
Also used : FwFrom(org.batfish.representation.juniper.FwFrom) FwFromDestinationPrefixList(org.batfish.representation.juniper.FwFromDestinationPrefixList) FwFromDestinationPrefixListExcept(org.batfish.representation.juniper.FwFromDestinationPrefixListExcept)

Aggregations

FwFrom (org.batfish.representation.juniper.FwFrom)1 FwFromDestinationPrefixList (org.batfish.representation.juniper.FwFromDestinationPrefixList)1 FwFromDestinationPrefixListExcept (org.batfish.representation.juniper.FwFromDestinationPrefixListExcept)1