Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
3328
Description
Although OF10 supports ICMP type/code match, openflowplugin always ignores icmpv4-match in MD-SAL match if OF protocol is OF10.
I tried to install a flow entry which drops ICMPv4 echo into OF10 switch.
PUT http://localhost:8080/restconf/config/opendaylight-inventory:nodes/opendaylight-inventory:node/openflow:1/flow-node-inventory:table/0/flow-node-inventory:flow/icmp_echo
{
"flow-node-inventory:flow": [
{
"id": "icmp_echo",
"idle-timeout": 0,
"hard-timeout": 0,
"table_id": 0,
"priority": 10,
"match": {
"ip-match":
,
"icmpv4-match":
,
"ethernet-match": {
"ethernet-type":
}
}
}
]
}
But both ICMP type and code were ignored.
mininet> dpctl dump-flows
-
-
- s1 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=68.873s, table=0, n_packets=0, n_bytes=0, idle_age=68, priority=10,icmp actions=drop
- s1 ------------------------------------------------------------------------
-
ICMP type and code should be set as TP_SRC/TP_DST respectively into OF10 match like this.
mininet> dpctl dump-flows
-
-
- s1 ------------------------------------------------------------------------
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=4.637s, table=0, n_packets=0, n_bytes=0, idle_age=4, priority=10,icmp,icmp_type=8,icmp_code=0 actions=drop
- s1 ------------------------------------------------------------------------
-