Search in sources :

Example 1 with FwFromPacketLength

use of org.batfish.representation.juniper.FwFromPacketLength in project batfish by batfish.

the class ConfigurationBuilder method exitFftf_packet_length_except.

@Override
public void exitFftf_packet_length_except(Fftf_packet_length_exceptContext ctx) {
    List<SubRange> range = toRange(ctx.range());
    FwFrom from = new FwFromPacketLength(range, true);
    _currentFwTerm.getFroms().add(from);
}
Also used : FwFromPacketLength(org.batfish.representation.juniper.FwFromPacketLength) FwFrom(org.batfish.representation.juniper.FwFrom) SubRange(org.batfish.datamodel.SubRange)

Example 2 with FwFromPacketLength

use of org.batfish.representation.juniper.FwFromPacketLength in project batfish by batfish.

the class ConfigurationBuilder method exitFftf_packet_length.

@Override
public void exitFftf_packet_length(Fftf_packet_lengthContext ctx) {
    List<SubRange> range = toRange(ctx.range());
    FwFrom from = new FwFromPacketLength(range, false);
    _currentFwTerm.getFroms().add(from);
}
Also used : FwFromPacketLength(org.batfish.representation.juniper.FwFromPacketLength) FwFrom(org.batfish.representation.juniper.FwFrom) SubRange(org.batfish.datamodel.SubRange)

Aggregations

SubRange (org.batfish.datamodel.SubRange)2 FwFrom (org.batfish.representation.juniper.FwFrom)2 FwFromPacketLength (org.batfish.representation.juniper.FwFromPacketLength)2