Search in sources :

Example 1 with RoutePolicyBooleanLocalPreference

use of org.batfish.representation.cisco.RoutePolicyBooleanLocalPreference 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)1 IntExpr (org.batfish.datamodel.routing_policy.expr.IntExpr)1 RoutePolicyBooleanLocalPreference (org.batfish.representation.cisco.RoutePolicyBooleanLocalPreference)1