Search in sources :

Example 1 with Route4FilterLineUpTo

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

the class ConfigurationBuilder method enterPopsfrf_upto.

@Override
public void enterPopsfrf_upto(Popsfrf_uptoContext ctx) {
    int maxPrefixLength = toInt(ctx.high);
    if (_currentRouteFilterPrefix != null) {
        // ipv4
        Route4FilterLine line = new Route4FilterLineUpTo(_currentRouteFilterPrefix, maxPrefixLength);
        _currentRouteFilterLine = _currentRouteFilter.insertLine(line, Route4FilterLine.class);
    } else if (_currentRoute6FilterPrefix != null) {
        // ipv6
        Route6FilterLine line = new Route6FilterLineUpTo(_currentRoute6FilterPrefix, maxPrefixLength);
        _currentRoute6FilterLine = _currentRouteFilter.insertLine(line, Route6FilterLine.class);
    }
}
Also used : Route6FilterLine(org.batfish.representation.juniper.Route6FilterLine) Route6FilterLineUpTo(org.batfish.representation.juniper.Route6FilterLineUpTo) Route4FilterLine(org.batfish.representation.juniper.Route4FilterLine) Route4FilterLineUpTo(org.batfish.representation.juniper.Route4FilterLineUpTo)

Aggregations

Route4FilterLine (org.batfish.representation.juniper.Route4FilterLine)1 Route4FilterLineUpTo (org.batfish.representation.juniper.Route4FilterLineUpTo)1 Route6FilterLine (org.batfish.representation.juniper.Route6FilterLine)1 Route6FilterLineUpTo (org.batfish.representation.juniper.Route6FilterLineUpTo)1