This only checks the default settings. Signed-off-by: Alexandru Copot <alex.miha...@gmail.com> Cc: Daniel Baluta <dbal...@ixiacom.com> --- tests/ofproto.at | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+)
diff --git a/tests/ofproto.at b/tests/ofproto.at index 38bfb02..44f81b8 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 + +ovs-vsctl add-br br0 +ovs-vsctl set bridge br0 protocols=OpenFlow13 + +# 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' + 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) + +EOF + +AT_CHECK([fgrep "$expected" monitor.log], [], [ignore]) + +OVS_VSWITCHD_STOP +AT_CLEANUP -- 1.8.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev