[ovs-dev] [of1.1 resend 6/7] tests: Add tests for mod flows with cookie miss on OF1.2.

Joe Stringer joe at wand.net.nz
Thu Jul 4 03:20:46 UTC 2013


Looks good.

On Sat, Jun 29, 2013 at 8:27 AM, Ben Pfaff <blp at nicira.com> wrote:
> Signed-off-by: Ben Pfaff <blp at nicira.com>
> ---
>  tests/ofproto.at |   22 ++++++++++++++++++++--
>  1 files changed, 20 insertions(+), 2 deletions(-)
>
> diff --git a/tests/ofproto.at b/tests/ofproto.at
> index 53d5cad..5fc33d6 100644
> --- a/tests/ofproto.at
> +++ b/tests/ofproto.at
> @@ -423,7 +423,7 @@ NXST_FLOW reply:
>  OVS_VSWITCHD_STOP
>  AT_CLEANUP
>
> -AT_SETUP([ofproto - mod flow with cookie miss (mask==0)])
> +AT_SETUP([ofproto - mod flow with cookie miss (mask==0) - NXM])
>  OVS_VSWITCHD_START
>  AT_CHECK([ovs-ofctl -F nxm mod-flows br0 in_port=1,actions=1])
>  AT_CHECK([ovs-ofctl -F nxm dump-flows br0 | ofctl_strip | sort], [0], [dnl
> @@ -433,7 +433,16 @@ NXST_FLOW reply:
>  OVS_VSWITCHD_STOP
>  AT_CLEANUP
>
> -AT_SETUP([ofproto - mod flow with cookie miss (mask!=0)])
> +AT_SETUP([ofproto - mod flow with cookie miss (mask==0) - OF1.2])
> +OVS_VSWITCHD_START
> +AT_CHECK([ovs-ofctl -O openflow12 mod-flows br0 in_port=1,actions=1])
> +AT_CHECK([ovs-ofctl -O openflow12 dump-flows br0 | ofctl_strip | sort], [0], [dnl
> +OFPST_FLOW reply (OF1.2):
> +])
> +OVS_VSWITCHD_STOP
> +AT_CLEANUP
> +
> +AT_SETUP([ofproto - mod flow with cookie miss (mask!=0) - NXM])
>  OVS_VSWITCHD_START
>  AT_CHECK([ovs-ofctl -F nxm mod-flows br0 cookie=1/1,in_port=1,actions=1])
>  AT_CHECK([ovs-ofctl -F nxm dump-flows br0 | ofctl_strip | sort], [0], [dnl
> @@ -442,6 +451,15 @@ NXST_FLOW reply:
>  OVS_VSWITCHD_STOP
>  AT_CLEANUP
>
> +AT_SETUP([ofproto - mod flow with cookie miss (mask!=0) - OF1.2])
> +OVS_VSWITCHD_START
> +AT_CHECK([ovs-ofctl -O openflow12 mod-flows br0 cookie=1/1,in_port=1,actions=1])
> +AT_CHECK([ovs-ofctl -O openflow12 dump-flows br0 | ofctl_strip | sort], [0], [dnl
> +OFPST_FLOW reply (OF1.2):
> +])
> +OVS_VSWITCHD_STOP
> +AT_CLEANUP
> +
>  AT_SETUP([ofproto - del flows with cookies])
>  OVS_VSWITCHD_START
>  AT_CHECK([ovs-ofctl add-flow br0 cookie=0x1,in_port=1,actions=1])
> --
> 1.7.2.5
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list