Search in sources :

Example 1 with IntComparator

use of org.batfish.datamodel.routing_policy.expr.IntComparator 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)

Example 2 with IntComparator

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

the class CiscoControlPlaneExtractor method toRoutePolicyBoolean.

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

Example 3 with IntComparator

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

the class CiscoControlPlaneExtractor method toRoutePolicyBoolean.

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

Aggregations

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