@Test public void testToAclLineMatchExpr_tcpEstablished() { assertEquals( FwFromTcpFlags.TCP_ESTABLISHED.toAclLineMatchExpr(null, null, null), new MatchHeaderSpace( HeaderSpace.builder() .setIpProtocols(IpProtocol.TCP) .setTcpFlags( ImmutableList.of( TcpFlagsMatchConditions.builder() .setTcpFlags(TcpFlags.builder().setAck(true).build()) .setUseAck(true) .build(), TcpFlagsMatchConditions.builder() .setTcpFlags(TcpFlags.builder().setRst(true).build()) .setUseRst(true) .build())) .build(), TraceElement.of("Matched tcp-flags tcp-established"))); }
@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; }