@Test public void testToAclLineMatchExpr_tcpInitial() { assertEquals( FwFromTcpFlags.TCP_INITIAL.toAclLineMatchExpr(null, null, null), new MatchHeaderSpace( HeaderSpace.builder() .setIpProtocols(IpProtocol.TCP) .setTcpFlags( ImmutableList.of( TcpFlagsMatchConditions.builder() .setTcpFlags(TcpFlags.builder().setAck(true).setSyn(true).build()) .setUseAck(true) .setUseSyn(true) .build())) .build(), TraceElement.of("Matched tcp-flags tcp-initial"))); }
@Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderSpace(), getTraceElement(w)); }
FwFromTcpFlags implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderSpace(), getTraceElement(w)); } }
FwFromTcpFlags implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderSpace(), getTraceElement(w)); } private  FwFromTcpFlags(List<TcpFlagsMatchConditions> tcpFlags, CommandType commandType); }
FwFromTcpFlags implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderSpace(), getTraceElement(w)); } private  FwFromTcpFlags(List<TcpFlagsMatchConditions> tcpFlags, CommandType commandType); static FwFromTcpFlags fromTcpFlags(List<TcpFlagsMatchConditions> tcpFlags); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w); @Override Field getField(); }
FwFromTcpFlags implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderSpace(), getTraceElement(w)); } private  FwFromTcpFlags(List<TcpFlagsMatchConditions> tcpFlags, CommandType commandType); static FwFromTcpFlags fromTcpFlags(List<TcpFlagsMatchConditions> tcpFlags); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w); @Override Field getField(); static final FwFromTcpFlags TCP_ESTABLISHED; static final FwFromTcpFlags TCP_INITIAL; }