Search in sources :

Example 1 with RouteMapSetOriginTypeLine

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

the class CiscoControlPlaneExtractor method exitSet_origin_rm_stanza.

@Override
public void exitSet_origin_rm_stanza(Set_origin_rm_stanzaContext ctx) {
    OriginExpr originExpr = toOriginExpr(ctx.origin_expr_literal());
    RouteMapSetLine line = new RouteMapSetOriginTypeLine(originExpr);
    _currentRouteMapClause.addSetLine(line);
}
Also used : RouteMapSetOriginTypeLine(org.batfish.representation.cisco.RouteMapSetOriginTypeLine) OriginExpr(org.batfish.datamodel.routing_policy.expr.OriginExpr) RouteMapSetLine(org.batfish.representation.cisco.RouteMapSetLine)

Aggregations

OriginExpr (org.batfish.datamodel.routing_policy.expr.OriginExpr)1 RouteMapSetLine (org.batfish.representation.cisco.RouteMapSetLine)1 RouteMapSetOriginTypeLine (org.batfish.representation.cisco.RouteMapSetOriginTypeLine)1