@Test public void testApplyTo_bgp() { FwFromHostProtocol from = new FwFromHostProtocol(HostProtocol.BGP); List<ExprAclLine> lines = new ArrayList<>(); from.applyTo(lines, null); assertThat( lines, equalTo( ImmutableList.of( new ExprAclLine( LineAction.PERMIT, new MatchHeaderSpace( HeaderSpace.builder() .setIpProtocols(ImmutableSet.of(IpProtocol.TCP)) .setDstPorts( ImmutableSet.of(SubRange.singleton(NamedPort.BGP.number()))) .build()), null, TraceElement.of("Matched host-inbound-traffic protocol BGP"))))); }
public void applyTo(List<? super ExprAclLine> lines, Warnings w) { lines.addAll(_protocol.getLines()); }
FwFromHostProtocol implements Serializable { public void applyTo(List<? super ExprAclLine> lines, Warnings w) { lines.addAll(_protocol.getLines()); } }
FwFromHostProtocol implements Serializable { public void applyTo(List<? super ExprAclLine> lines, Warnings w) { lines.addAll(_protocol.getLines()); } FwFromHostProtocol(HostProtocol protocol); }
FwFromHostProtocol implements Serializable { public void applyTo(List<? super ExprAclLine> lines, Warnings w) { lines.addAll(_protocol.getLines()); } FwFromHostProtocol(HostProtocol protocol); void applyTo(List<? super ExprAclLine> lines, Warnings w); }
FwFromHostProtocol implements Serializable { public void applyTo(List<? super ExprAclLine> lines, Warnings w) { lines.addAll(_protocol.getLines()); } FwFromHostProtocol(HostProtocol protocol); void applyTo(List<? super ExprAclLine> lines, Warnings w);  }