Search in sources :

Example 1 with Route6FilterLineOrLonger

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

the class ConfigurationBuilder method enterPopsfrf_orlonger.

@Override
public void enterPopsfrf_orlonger(Popsfrf_orlongerContext ctx) {
    if (_currentRouteFilterPrefix != null) {
        // ipv4
        Route4FilterLine line = new Route4FilterLineOrLonger(_currentRouteFilterPrefix);
        _currentRouteFilterLine = _currentRouteFilter.insertLine(line, Route4FilterLine.class);
    } else if (_currentRoute6FilterPrefix != null) {
        // ipv6
        Route6FilterLine line = new Route6FilterLineOrLonger(_currentRoute6FilterPrefix);
        _currentRoute6FilterLine = _currentRouteFilter.insertLine(line, Route6FilterLine.class);
    }
}
Also used : Route6FilterLine(org.batfish.representation.juniper.Route6FilterLine) Route6FilterLineOrLonger(org.batfish.representation.juniper.Route6FilterLineOrLonger) Route4FilterLine(org.batfish.representation.juniper.Route4FilterLine) Route4FilterLineOrLonger(org.batfish.representation.juniper.Route4FilterLineOrLonger)

Aggregations

Route4FilterLine (org.batfish.representation.juniper.Route4FilterLine)1 Route4FilterLineOrLonger (org.batfish.representation.juniper.Route4FilterLineOrLonger)1 Route6FilterLine (org.batfish.representation.juniper.Route6FilterLine)1 Route6FilterLineOrLonger (org.batfish.representation.juniper.Route6FilterLineOrLonger)1