Search in sources :

Example 1 with Route6FilterLineThrough

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);
    }
}
Also used : Route6FilterLine(org.batfish.representation.juniper.Route6FilterLine) Route6FilterLineThrough(org.batfish.representation.juniper.Route6FilterLineThrough) Route4FilterLineThrough(org.batfish.representation.juniper.Route4FilterLineThrough) Route4FilterLine(org.batfish.representation.juniper.Route4FilterLine) Prefix(org.batfish.datamodel.Prefix) Prefix6(org.batfish.datamodel.Prefix6)

Aggregations

Prefix (org.batfish.datamodel.Prefix)1 Prefix6 (org.batfish.datamodel.Prefix6)1 Route4FilterLine (org.batfish.representation.juniper.Route4FilterLine)1 Route4FilterLineThrough (org.batfish.representation.juniper.Route4FilterLineThrough)1 Route6FilterLine (org.batfish.representation.juniper.Route6FilterLine)1 Route6FilterLineThrough (org.batfish.representation.juniper.Route6FilterLineThrough)1