Search in sources :

Example 1 with SubRangeExpr

use of org.batfish.datamodel.routing_policy.expr.SubRangeExpr in project batfish by batfish.

the class CiscoControlPlaneExtractor method toSubRangeExpr.

private SubRangeExpr toSubRangeExpr(Rp_subrangeContext ctx) {
    IntExpr first = toCommonIntExpr(ctx.first);
    IntExpr last = first;
    if (ctx.last != null) {
        last = toCommonIntExpr(ctx.first);
    }
    return new SubRangeExpr(first, last);
}
Also used : SubRangeExpr(org.batfish.datamodel.routing_policy.expr.SubRangeExpr) IntExpr(org.batfish.datamodel.routing_policy.expr.IntExpr)

Aggregations

IntExpr (org.batfish.datamodel.routing_policy.expr.IntExpr)1 SubRangeExpr (org.batfish.datamodel.routing_policy.expr.SubRangeExpr)1