Search in sources :

Example 1 with Tcp_flags_alternativeContext

use of org.batfish.grammar.flatjuniper.FlatJuniperParser.Tcp_flags_alternativeContext in project batfish by batfish.

the class ConfigurationBuilder method toTcpFlags.

private static List<TcpFlags> toTcpFlags(Tcp_flagsContext ctx) {
    List<TcpFlags> tcpFlagsList = new ArrayList<>();
    for (Tcp_flags_alternativeContext alternativeCtx : ctx.alternatives) {
        TcpFlags tcpFlags = toTcpFlags(alternativeCtx);
        tcpFlagsList.add(tcpFlags);
    }
    return tcpFlagsList;
}
Also used : TcpFlags(org.batfish.datamodel.TcpFlags) FwFromTcpFlags(org.batfish.representation.juniper.FwFromTcpFlags) Tcp_flags_alternativeContext(org.batfish.grammar.flatjuniper.FlatJuniperParser.Tcp_flags_alternativeContext) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 TcpFlags (org.batfish.datamodel.TcpFlags)1 Tcp_flags_alternativeContext (org.batfish.grammar.flatjuniper.FlatJuniperParser.Tcp_flags_alternativeContext)1 FwFromTcpFlags (org.batfish.representation.juniper.FwFromTcpFlags)1