Search in sources :

Example 1 with Route4FilterLineExact

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

the class ConfigurationBuilder method enterPopsfrf_exact.

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

Aggregations

Route4FilterLine (org.batfish.representation.juniper.Route4FilterLine)1 Route4FilterLineExact (org.batfish.representation.juniper.Route4FilterLineExact)1 Route6FilterLine (org.batfish.representation.juniper.Route6FilterLine)1 Route6FilterLineExact (org.batfish.representation.juniper.Route6FilterLineExact)1