Search in sources :

Example 1 with RouteMapSetLocalPreferenceLine

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

the class CiscoControlPlaneExtractor method exitSet_local_preference_rm_stanza.

@Override
public void exitSet_local_preference_rm_stanza(Set_local_preference_rm_stanzaContext ctx) {
    IntExpr localPreference = toLocalPreferenceIntExpr(ctx.pref);
    RouteMapSetLocalPreferenceLine line = new RouteMapSetLocalPreferenceLine(localPreference);
    _currentRouteMapClause.addSetLine(line);
}
Also used : IntExpr(org.batfish.datamodel.routing_policy.expr.IntExpr) RouteMapSetLocalPreferenceLine(org.batfish.representation.cisco.RouteMapSetLocalPreferenceLine)

Aggregations

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