X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fofp-actions.at;h=452bdbfe234da8597a93f2493d1df3be79d72847;hb=003ce655b7116d18c86a74c50391e54990346931;hp=0909ce14aecc8168ef9f580e26e1fe3b97793d23;hpb=7fdb60a758d76fecf5165a9d0bf1df9271699141;p=sliver-openvswitch.git diff --git a/tests/ofp-actions.at b/tests/ofp-actions.at index 0909ce14a..452bdbfe2 100644 --- a/tests/ofp-actions.at +++ b/tests/ofp-actions.at @@ -39,7 +39,7 @@ AT_DATA([test-data], [dnl # actions=mod_tp_dst:443 000a 0008 01bb 0000 -# actions=enqueue:10q55 +# actions=enqueue:10:55 000b 0010 000a 000000000000 00000037 # actions=resubmit:5 @@ -138,10 +138,10 @@ AT_DATA([test-data], [dnl # actions=CONTROLLER:1234 0000 0010 fffffffd 04d2 000000000000 -# actions=mod_vlan_vid:9 +# actions=set_vlan_vid:9 0001 0008 0009 0000 -# actions=mod_vlan_pcp:6 +# actions=set_vlan_pcp:6 0002 0008 06 000000 # actions=mod_dl_src:00:11:22:33:44:55 @@ -165,7 +165,7 @@ AT_DATA([test-data], [dnl # actions=mod_tp_dst:443 000a 0008 01bb 0000 -# actions=strip_vlan +# actions=pop_vlan 0012 0008 00000000 # actions=set_queue:2309737729 @@ -477,3 +477,15 @@ AT_CHECK( [ovs-ofctl '-vPATTERN:console:%c|%p|%m' parse-ofp11-instructions < input.txt], [0], [expout], [experr]) AT_CLEANUP + +AT_SETUP([ofp-actions - inconsistent MPLS actions]) +OVS_VSWITCHD_START +dnl OK: Use fin_timeout action on TCP flow +AT_CHECK([ovs-ofctl -O OpenFlow11 -vwarn add-flow br0 'tcp actions=fin_timeout(idle_timeout=1)']) +dnl Bad: Use fin_timeout action on TCP flow that has been converted to MPLS +AT_CHECK([ovs-ofctl -O OpenFlow11 -vwarn add-flow br0 'tcp actions=push_mpls:0x8847,fin_timeout(idle_timeout=1)'], + [1], [], [dnl +ovs-ofctl: none of the usable flow formats (OpenFlow10,NXM) is among the allowed flow formats (OpenFlow11) +]) +OVS_VSWITCHD_STOP +AT_CLEANUP