Search in sources :

Example 1 with RoutePolicyCommunitySet

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

the class CiscoControlPlaneExtractor method toRoutePolicyStatement.

private RoutePolicyStatement toRoutePolicyStatement(Set_community_rp_stanzaContext ctx) {
    RoutePolicyCommunitySet cset = toRoutePolicyCommunitySet(ctx.rp_community_set());
    boolean additive = (ctx.ADDITIVE() != null);
    return new RoutePolicySetCommunity(cset, additive);
}
Also used : RoutePolicyCommunitySet(org.batfish.representation.cisco.RoutePolicyCommunitySet) RoutePolicySetCommunity(org.batfish.representation.cisco.RoutePolicySetCommunity)

Aggregations

RoutePolicyCommunitySet (org.batfish.representation.cisco.RoutePolicyCommunitySet)1 RoutePolicySetCommunity (org.batfish.representation.cisco.RoutePolicySetCommunity)1