Search in sources :

Example 1 with Boolean_next_hop_in_rp_stanzaContext

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

the class CiscoControlPlaneExtractor method toRoutePolicyBoolean.

private RoutePolicyBoolean toRoutePolicyBoolean(Boolean_simple_rp_stanzaContext ctx) {
    Boolean_rp_stanzaContext bctx = ctx.boolean_rp_stanza();
    if (bctx != null) {
        return toRoutePolicyBoolean(bctx);
    }
    Boolean_apply_rp_stanzaContext actx = ctx.boolean_apply_rp_stanza();
    if (actx != null) {
        return toRoutePolicyBoolean(actx);
    }
    Boolean_as_path_in_rp_stanzaContext aictx = ctx.boolean_as_path_in_rp_stanza();
    if (aictx != null) {
        return toRoutePolicyBoolean(aictx);
    }
    Boolean_as_path_is_local_rp_stanzaContext alctx = ctx.boolean_as_path_is_local_rp_stanza();
    if (alctx != null) {
        return toRoutePolicyBoolean(alctx);
    }
    Boolean_as_path_neighbor_is_rp_stanzaContext anctx = ctx.boolean_as_path_neighbor_is_rp_stanza();
    if (anctx != null) {
        return toRoutePolicyBoolean(anctx);
    }
    Boolean_as_path_originates_from_rp_stanzaContext aoctx = ctx.boolean_as_path_originates_from_rp_stanza();
    if (aoctx != null) {
        return toRoutePolicyBoolean(aoctx);
    }
    Boolean_as_path_passes_through_rp_stanzaContext apctx = ctx.boolean_as_path_passes_through_rp_stanza();
    if (apctx != null) {
        return toRoutePolicyBoolean(apctx);
    }
    Boolean_community_matches_any_rp_stanzaContext cmactx = ctx.boolean_community_matches_any_rp_stanza();
    if (cmactx != null) {
        return toRoutePolicyBoolean(cmactx);
    }
    Boolean_community_matches_every_rp_stanzaContext cmectx = ctx.boolean_community_matches_every_rp_stanza();
    if (cmectx != null) {
        return toRoutePolicyBoolean(cmectx);
    }
    Boolean_destination_rp_stanzaContext dctx = ctx.boolean_destination_rp_stanza();
    if (dctx != null) {
        return toRoutePolicyBoolean(dctx);
    }
    Boolean_local_preference_rp_stanzaContext lctx = ctx.boolean_local_preference_rp_stanza();
    if (lctx != null) {
        return toRoutePolicyBoolean(lctx);
    }
    Boolean_med_rp_stanzaContext mctx = ctx.boolean_med_rp_stanza();
    if (mctx != null) {
        return toRoutePolicyBoolean(mctx);
    }
    Boolean_next_hop_in_rp_stanzaContext nctx = ctx.boolean_next_hop_in_rp_stanza();
    if (nctx != null) {
        return toRoutePolicyBoolean(nctx);
    }
    Boolean_rib_has_route_rp_stanzaContext ribctx = ctx.boolean_rib_has_route_rp_stanza();
    if (ribctx != null) {
        return toRoutePolicyBoolean(ribctx);
    }
    Boolean_route_type_is_rp_stanzaContext routectx = ctx.boolean_route_type_is_rp_stanza();
    if (routectx != null) {
        return toRoutePolicyBoolean(routectx);
    }
    Boolean_tag_is_rp_stanzaContext tctx = ctx.boolean_tag_is_rp_stanza();
    if (tctx != null) {
        return toRoutePolicyBoolean(tctx);
    }
    throw convError(RoutePolicyBoolean.class, ctx);
}
Also used : Boolean_as_path_is_local_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_as_path_is_local_rp_stanzaContext) Boolean_community_matches_any_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_community_matches_any_rp_stanzaContext) Boolean_as_path_passes_through_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_as_path_passes_through_rp_stanzaContext) Boolean_community_matches_every_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_community_matches_every_rp_stanzaContext) Boolean_as_path_in_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_as_path_in_rp_stanzaContext) Boolean_destination_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_destination_rp_stanzaContext) Boolean_rib_has_route_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_rib_has_route_rp_stanzaContext) Boolean_as_path_originates_from_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_as_path_originates_from_rp_stanzaContext) Boolean_route_type_is_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_route_type_is_rp_stanzaContext) Boolean_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_rp_stanzaContext) Boolean_apply_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_apply_rp_stanzaContext) Boolean_local_preference_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_local_preference_rp_stanzaContext) Boolean_tag_is_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_tag_is_rp_stanzaContext) Boolean_as_path_neighbor_is_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_as_path_neighbor_is_rp_stanzaContext) Boolean_next_hop_in_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_next_hop_in_rp_stanzaContext) Boolean_med_rp_stanzaContext(org.batfish.grammar.cisco.CiscoParser.Boolean_med_rp_stanzaContext)

Aggregations

Boolean_apply_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_apply_rp_stanzaContext)1 Boolean_as_path_in_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_as_path_in_rp_stanzaContext)1 Boolean_as_path_is_local_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_as_path_is_local_rp_stanzaContext)1 Boolean_as_path_neighbor_is_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_as_path_neighbor_is_rp_stanzaContext)1 Boolean_as_path_originates_from_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_as_path_originates_from_rp_stanzaContext)1 Boolean_as_path_passes_through_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_as_path_passes_through_rp_stanzaContext)1 Boolean_community_matches_any_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_community_matches_any_rp_stanzaContext)1 Boolean_community_matches_every_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_community_matches_every_rp_stanzaContext)1 Boolean_destination_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_destination_rp_stanzaContext)1 Boolean_local_preference_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_local_preference_rp_stanzaContext)1 Boolean_med_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_med_rp_stanzaContext)1 Boolean_next_hop_in_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_next_hop_in_rp_stanzaContext)1 Boolean_rib_has_route_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_rib_has_route_rp_stanzaContext)1 Boolean_route_type_is_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_route_type_is_rp_stanzaContext)1 Boolean_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_rp_stanzaContext)1 Boolean_tag_is_rp_stanzaContext (org.batfish.grammar.cisco.CiscoParser.Boolean_tag_is_rp_stanzaContext)1