use of org.batfish.grammar.cisco.CiscoParser.Set_isis_metric_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);
}
Aggregations