use of org.batfish.representation.juniper.FwFromSourcePrefixList 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);
}
Aggregations