From: Alexandru Copot Date: Sat, 7 Sep 2013 12:36:23 +0000 (+0300) Subject: tests/ofproto: add basic test for OFPT_GET_ASYNC_REQUEST/REPLY X-Git-Tag: sliver-openvswitch-2.0.90-1~15^2~20 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=451564513e97083009af2dd66f52884f13a26365;p=sliver-openvswitch.git tests/ofproto: add basic test for OFPT_GET_ASYNC_REQUEST/REPLY This only checks the default settings. Signed-off-by: Alexandru Copot Cc: Daniel Baluta Signed-off-by: Ben Pfaff --- diff --git a/tests/ofproto.at b/tests/ofproto.at index 38bfb0225..91ee85ab8 100644 --- a/tests/ofproto.at +++ b/tests/ofproto.at @@ -1878,3 +1878,37 @@ NXT_FLOW_MONITOR_RESUMED: OVS_VSWITCHD_STOP AT_CLEANUP + +AT_SETUP([ofproto - event filtering (OpenFlow 1.3)]) +AT_KEYWORDS([monitor]) +OVS_VSWITCHD_START + +# Start a monitor, use the required protocol version +ovs-ofctl -O OpenFlow13 monitor br0 --detach --no-chdir --pidfile >monitor.log 2>&1 +AT_CAPTURE_FILE([monitor.log]) + +# Send an OpenFlow13 message (04), OFPT_GET_ASYNC_REQUEST (1a), length (8), xid (0a) +ovs-appctl -t ovs-ofctl ofctl/send 041a00080000000a +ovs-appctl -t ovs-ofctl ofctl/barrier + +# Check default setting +read -r -d '' expected <<'EOF' +EOF + +AT_CHECK([ofctl_strip < monitor.log], [], [dnl +send: OFPT_GET_ASYNC_REQUEST (OF1.3): +OFPT_GET_ASYNC_REPLY (OF1.3): + master: + PACKET_IN: no_match action + PORT_STATUS: add delete modify + FLOW_REMOVED: idle hard delete + + slave: + PACKET_IN: (off) + PORT_STATUS: add delete modify + FLOW_REMOVED: (off) +OFPT_BARRIER_REPLY (OF1.3): +]) + +OVS_VSWITCHD_STOP +AT_CLEANUP