Search in sources :

Example 1 with SubrangeContext

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

the class CiscoControlPlaneExtractor method toRange.

private static List<SubRange> toRange(RangeContext ctx) {
    List<SubRange> range = new ArrayList<>();
    for (SubrangeContext sc : ctx.range_list) {
        SubRange sr = toSubRange(sc);
        range.add(sr);
    }
    return range;
}
Also used : ArrayList(java.util.ArrayList) SubrangeContext(org.batfish.grammar.cisco.CiscoParser.SubrangeContext) SubRange(org.batfish.datamodel.SubRange)

Aggregations

ArrayList (java.util.ArrayList)1 SubRange (org.batfish.datamodel.SubRange)1 SubrangeContext (org.batfish.grammar.cisco.CiscoParser.SubrangeContext)1