ALL_ICMP is in fact fed in at EgressAclService.java:388
which causes an exception to be thrown. This occurs during
various tempest tests.
Change-Id: I5e6fdc0e9aa6fdcfe7f361879342feaf4d96e25d
Signed-off-by: Josh <jhershbe@redhat.com>
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
// Build the ICMPv4 Match
Icmpv4MatchBuilder icmpv4match = new Icmpv4MatchBuilder();
- icmpv4match.setIcmpv4Type(type);
- icmpv4match.setIcmpv4Code(code);
+ if(type != ALL_ICMP) {
+ icmpv4match.setIcmpv4Type(type);
+ }
+ if(code != ALL_ICMP) {
+ icmpv4match.setIcmpv4Code(code);
+ }
matchBuilder.setIcmpv4Match(icmpv4match.build());
return matchBuilder;