Search in sources :

Example 1 with RoutePolicyPrependAsPath

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

the class CiscoControlPlaneExtractor method toRoutePolicyStatement.

private RoutePolicyStatement toRoutePolicyStatement(Prepend_as_path_rp_stanzaContext ctx) {
    AsExpr expr = toAsExpr(ctx.as);
    IntExpr number = null;
    if (ctx.number != null) {
        number = toIntExpr(ctx.number);
    }
    return new RoutePolicyPrependAsPath(expr, number);
}
Also used : AsExpr(org.batfish.datamodel.routing_policy.expr.AsExpr) RoutePolicyPrependAsPath(org.batfish.representation.cisco.RoutePolicyPrependAsPath) IntExpr(org.batfish.datamodel.routing_policy.expr.IntExpr)

Aggregations

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