Search in sources :

Example 1 with Set_community_rp_stanzaContext

use of org.batfish.grammar.cisco.CiscoParser.Set_community_rp_stanzaContext in project batfish by batfish.

the class CiscoControlPlaneExtractor method toRoutePolicyStatement.

private RoutePolicyStatement toRoutePolicyStatement(Set_rp_stanzaContext ctx) {
    Prepend_as_path_rp_stanzaContext pasctx = ctx.prepend_as_path_rp_stanza();
    if (pasctx != null) {
        return toRoutePolicyStatement(pasctx);
    }
    Set_community_rp_stanzaContext cctx = ctx.set_community_rp_stanza();
    if (cctx != null) {
        return toRoutePolicyStatement(cctx);
    }
    Set_isis_metric_rp_stanzaContext ictx = ctx.set_isis_metric_rp_stanza();
    if (ictx != null) {
        return toRoutePolicyStatement(ictx);
    }
    Set_level_rp_stanzaContext lctx = ctx.set_level_rp_stanza();
    if (lctx != null) {
        return toRoutePolicyStatement(lctx);
    }
    Set_local_preference_rp_stanzaContext lpctx = ctx.set_local_preference_rp_stanza();
    if (lpctx != null) {
        return toRoutePolicyStatement(lpctx);
    }
    Set_med_rp_stanzaContext medctx = ctx.set_med_rp_stanza();
    if (medctx != null) {
        return toRoutePolicyStatement(medctx);
    }
    Set_metric_type_rp_stanzaContext mctx = ctx.set_metric_type_rp_stanza();
    if (mctx != null) {
        return toRoutePolicyStatement(mctx);
    }
    Set_next_hop_rp_stanzaContext nhctx = ctx.set_next_hop_rp_stanza();
    if (nhctx != null) {
        return toRoutePolicyStatement(nhctx);
    }
    Set_origin_rp_stanzaContext octx = ctx.set_origin_rp_stanza();
    if (octx != null) {
        return toRoutePolicyStatement(octx);
    }
    Set_tag_rp_stanzaContext tctx = ctx.set_tag_rp_stanza();
    if (tctx != null) {
        return toRoutePolicyStatement(tctx);
    }
    Set_weight_rp_stanzaContext wctx = ctx.set_weight_rp_stanza();
    if (wctx != null) {
        return toRoutePolicyStatement(wctx);
    }
    throw convError(RoutePolicyStatement.class, ctx);
}
Also used : Set_local_preference_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Set_local_preference_rp_stanzaContext) Set_community_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Set_community_rp_stanzaContext) Set_isis_metric_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Set_isis_metric_rp_stanzaContext) Set_origin_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Set_origin_rp_stanzaContext) Set_tag_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Set_tag_rp_stanzaContext) Set_metric_type_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Set_metric_type_rp_stanzaContext) Set_weight_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Set_weight_rp_stanzaContext) Prepend_as_path_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Prepend_as_path_rp_stanzaContext) Set_next_hop_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Set_next_hop_rp_stanzaContext) Set_level_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Set_level_rp_stanzaContext) Set_med_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Set_med_rp_stanzaContext)

Aggregations

Prepend_as_path_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Prepend_as_path_rp_stanzaContext)1 Set_community_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Set_community_rp_stanzaContext)1 Set_isis_metric_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Set_isis_metric_rp_stanzaContext)1 Set_level_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Set_level_rp_stanzaContext)1 Set_local_preference_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Set_local_preference_rp_stanzaContext)1 Set_med_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Set_med_rp_stanzaContext)1 Set_metric_type_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Set_metric_type_rp_stanzaContext)1 Set_next_hop_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Set_next_hop_rp_stanzaContext)1 Set_origin_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Set_origin_rp_stanzaContext)1 Set_tag_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Set_tag_rp_stanzaContext)1 Set_weight_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Set_weight_rp_stanzaContext)1