Search in sources :

Example 1 with RoutePolicyBooleanMed

use of org.batfish.representation.cisco.RoutePolicyBooleanMed in project batfish by batfish.

the class CiscoControlPlaneExtractor method toRoutePolicyBoolean.

private RoutePolicyBoolean toRoutePolicyBoolean(Boolean_med_rp_stanzaContext ctx) {
    IntComparator cmp = toIntComparator(ctx.int_comp());
    IntExpr rhs = toCommonIntExpr(ctx.rhs);
    return new RoutePolicyBooleanMed(cmp, rhs);
}
Also used : RoutePolicyBooleanMed(org.batfish.representation.cisco.RoutePolicyBooleanMed) IntComparator(org.batfish.datamodel.routing_policy.expr.IntComparator) IntExpr(org.batfish.datamodel.routing_policy.expr.IntExpr)

Aggregations

IntComparator (org.batfish.datamodel.routing_policy.expr.IntComparator)1 IntExpr (org.batfish.datamodel.routing_policy.expr.IntExpr)1 RoutePolicyBooleanMed (org.batfish.representation.cisco.RoutePolicyBooleanMed)1