use of org.batfish.representation.juniper.Route6FilterLineThrough in project batfish by batfish.
the class ConfigurationBuilder method enterPopsfrf_through.
@Override
public void enterPopsfrf_through(Popsfrf_throughContext ctx) {
if (_currentRouteFilterPrefix != null) {
// ipv4
Prefix throughPrefix = Prefix.parse(ctx.IP_PREFIX().getText());
Route4FilterLine line = new Route4FilterLineThrough(_currentRouteFilterPrefix, throughPrefix);
_currentRouteFilterLine = _currentRouteFilter.insertLine(line, Route4FilterLine.class);
} else if (_currentRoute6FilterPrefix != null) {
// ipv6
Prefix6 throughPrefix6 = new Prefix6(ctx.IPV6_PREFIX().getText());
Route6FilterLine line = new Route6FilterLineThrough(_currentRoute6FilterPrefix, throughPrefix6);
_currentRoute6FilterLine = _currentRouteFilter.insertLine(line, Route6FilterLine.class);
}
}
Aggregations