use of org.opendaylight.genius.mdsalutil.packet.IPProtocols in project netvirt by opendaylight.
the class AclNodeDefaultFlowsTxBuilder method addConntrackClassifierFlows.
private void addConntrackClassifierFlows(short tableId, short gotoTableId) {
for (IPProtocols protocol : AclConstants.PROTOCOLS_SUPPORTED_BY_CONNTRACK) {
switch(protocol) {
case TCP:
case UDP:
// For tcp and udp, create one flow each for IPv4 and IPv6
programConntrackClassifierFlow(tableId, gotoTableId, MatchEthernetType.IPV4, protocol);
programConntrackClassifierFlow(tableId, gotoTableId, MatchEthernetType.IPV6, protocol);
break;
case ICMP:
programConntrackClassifierFlow(tableId, gotoTableId, MatchEthernetType.IPV4, protocol);
break;
case IPV6ICMP:
programConntrackClassifierFlow(tableId, gotoTableId, MatchEthernetType.IPV6, protocol);
break;
default:
LOG.error("Invalid protocol [{}] for conntrack", protocol);
}
}
}
Aggregations