Changes between Version 24 and Version 25 of OpenFlow/FOAM/Testing


Ignore:
Timestamp:
06/21/12 15:25:19 (7 years ago)
Author:
Josh Smift
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenFlow/FOAM/Testing

    v24 v25  
    5858
    5959{{{
    60 rspec=~/rspecs/request/foam-testing/$foamserver/openflow-any-acedcodefood.rspec
     60rspec=~/rspecs/request/foam-testing/$foamserver/openflow-mac-acedcodefood.rspec
    6161}}}
    6262
     
    9090fvserver=$foamserver
    9191am=https://${foamserver}:3626/foam/gapi/1
    92 rspec=~/rspecs/request/foam-testing/$foamserver/openflow-any-acedcodefood.rspec
     92rspec=~/rspecs/request/foam-testing/$foamserver/openflow-mac-acedcodefood.rspec
    9393slicename=${USER}foamtest
    9494slice_urn=urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+$slicename
     
    535535
    536536{{{
    537 rspec_10_3_5_0_24=~/rspecs/request/foam-testing/$foamserver/openflow-any-10-3-5-0-24.rspec
    538 rspec_10_7_9_0_24=~/rspecs/request/foam-testing/$foamserver/openflow-any-10-7-9-0-24.rspec
    539 rspec_10_3_0_0_16=~/rspecs/request/foam-testing/$foamserver/openflow-any-10-3-0-0-16.rspec
    540 rspec_10_0_0_0_12=~/rspecs/request/foam-testing/$foamserver/openflow-any-10-0-0-0-12.rspec
    541 
    542 rspec_cafebeefface=~/rspecs/request/foam-testing/$foamserver/openflow-any-cafebeefface.rspec
    543 rspec_deadbeadfeed=~/rspecs/request/foam-testing/$foamserver/openflow-any-deadbeadfeed.rspec
    544 rspec_aced_and_cafe=~/rspecs/request/foam-testing/$foamserver/openflow-any-aced-and-cafe.rspec
    545 rspec_aced_and_cafe_and_dead=~/rspecs/request/foam-testing/$foamserver/openflow-any-aced-and-cafe-and-dead.rspec
    546 
    547 rspec_ethertype_3171=~/rspecs/request/foam-testing/$foamserver/openflow-any-ethertype-3171.rspec
    548 rspec_ethertype_3172=~/rspecs/request/foam-testing/$foamserver/openflow-any-ethertype-3172.rspec
    549 rspec_ethertype_3173_and_3171=~/rspecs/request/foam-testing/$foamserver/openflow-any-ethertype-3173-and-3171.rspec
    550 rspec_ethertype_3173_and_3172_and_3171=~/rspecs/request/foam-testing/$foamserver/openflow-any-ethertype-3173-and-3172-and-3171.rspec
    551 
    552 rspec_one_of_each=~/rspecs/request/foam-testing/$foamserver/openflow-any-one-each-subnet-mac-ethertype.rspec
    553 
    554 rspec_subnet_and_vlan=~/rspecs/request/foam-testing/$foamserver/openflow-any-subnet-and-vlan.rspec
     537rspec_10_3_5_0_24=~/rspecs/request/foam-testing/$foamserver/openflow-ip-10-3-5-0-24.rspec
     538rspec_10_7_9_0_24=~/rspecs/request/foam-testing/$foamserver/openflow-ip-10-7-9-0-24.rspec
     539rspec_10_3_0_0_16=~/rspecs/request/foam-testing/$foamserver/openflow-ip-10-3-0-0-16.rspec
     540rspec_10_0_0_0_12=~/rspecs/request/foam-testing/$foamserver/openflow-ip-10-0-0-0-12.rspec
     541
     542rspec_cafebeefface=~/rspecs/request/foam-testing/$foamserver/openflow-mac-cafebeefface.rspec
     543rspec_deadbeadfeed=~/rspecs/request/foam-testing/$foamserver/openflow-mac-deadbeadfeed.rspec
     544rspec_aced_and_cafe=~/rspecs/request/foam-testing/$foamserver/openflow-mac-aced-and-cafe.rspec
     545rspec_aced_and_cafe_and_dead=~/rspecs/request/foam-testing/$foamserver/openflow-mac-aced-and-cafe-and-dead.rspec
     546
     547rspec_ethertype_3171=~/rspecs/request/foam-testing/$foamserver/openflow-ethertype-3171.rspec
     548rspec_ethertype_3172=~/rspecs/request/foam-testing/$foamserver/openflow-ethertype-3172.rspec
     549rspec_ethertype_3173_and_3171=~/rspecs/request/foam-testing/$foamserver/openflow-ethertype-3173-and-3171.rspec
     550rspec_ethertype_3173_and_3172_and_3171=~/rspecs/request/foam-testing/$foamserver/openflow-ethertype-3173-and-3172-and-3171.rspec
     551
     552rspec_one_of_each=~/rspecs/request/foam-testing/$foamserver/openflow-one-each-subnet-mac-ethertype.rspec
     553
     554rspec_dpid_aa_port_3_and_36=~/rspecs/request/foam-testing/$foamserver/openflow-dpid-aa-port-3-and-36.rspec
     555rspec_dpid_aa_port_3_and_9=~/rspecs/request/foam-testing/$foamserver/openflow-dpid-aa-port-3-and-9.rspec
     556rspec_dpid_aa_port_5_dpid_ff_port_21=~/rspecs/request/foam-testing/$foamserver/openflow-dpid-aa-port-5-dpid-ff-port-21.rspec
     557rspec_dpid_aa_port_7_dpid_ff_port_21=~/rspecs/request/foam-testing/$foamserver/openflow-dpid-aa-port-7-dpid-ff-port-21.rspec
     558
     559rspec_subnet_and_vlan=~/rspecs/request/foam-testing/$foamserver/openflow-subnet-and-vlan.rspec
    555560}}}
    556561
     
    864869}}}
    865870
     871=== Slivers with port groups ===
     872
     873This set of tests uses rspecs containing port groups, and tests various situations where a sliver does or doesn't include multiple ports in a port group.
     874
     875Because the different combinations of ports are defined in the rspec, each test creates only one sliver, using a different rspec with the different combinations of ports that we want to test.
     876
     877NOTE that this assumes that you have datapaths and port groups defined in your FOAM server, which correspond to the datapaths and port groups in the rspec. FIXME: Need to document how to do this with fake datapaths.
     878
     879One port in a port group, and one that isn't - should be approved:
     880
     881{{{
     882foam-create-and-verify-sliver -q $foamserver $fvserver $am $slicename1 $rspec_dpid_aa_port_3_and_36 approved true 4
     883for slicename in $slicename1 ; do omni -a $am deletesliver $slicename ; done
     884}}}
     885
     886Two ports in a port group on the same datapath - should be pending:
     887
     888{{{
     889foam-create-and-verify-sliver -q $foamserver $fvserver $am $slicename1 $rspec_dpid_aa_port_3_and_9 pending false 0
     890for slicename in $slicename1 ; do omni -a $am deletesliver $slicename ; done
     891}}}
     892
     893Two ports, one on each datapath, not in a port group - should be approved:
     894
     895{{{
     896foam-create-and-verify-sliver -q $foamserver $fvserver $am $slicename1 $rspec_dpid_aa_port_5_dpid_ff_port_21 approved true 8
     897for slicename in $slicename1 ; do omni -a $am deletesliver $slicename ; done
     898}}}
     899
     900Two ports, one on each datapath, in a port group - should be pending:
     901
     902{{{
     903foam-create-and-verify-sliver -q $foamserver $fvserver $am $slicename1 $rspec_dpid_aa_port_7_dpid_ff_port_21 pending false 0
     904for slicename in $slicename1 ; do omni -a $am deletesliver $slicename ; done
     905}}}
     906
    866907=== Forbidden slivers ===
    867908
     
    11801221
    11811222{{{
    1182 rspec_request1=~/rspecs/request/foam-testing/$foamserver/openflow-any-acedcodefood.rspec
    1183 rspec_request2=~/rspecs/request/foam-testing/$foamserver/openflow-any-cafebeefface.rspec
    1184 rspec_request3=~/rspecs/request/foam-testing/$foamserver/openflow-any-deadbeadfeed.rspec
     1223rspec_request1=~/rspecs/request/foam-testing/$foamserver/openflow-mac-acedcodefood.rspec
     1224rspec_request2=~/rspecs/request/foam-testing/$foamserver/openflow-mac-cafebeefface.rspec
     1225rspec_request3=~/rspecs/request/foam-testing/$foamserver/openflow-mac-deadbeadfeed.rspec
    11851226rspec_manifest1=~/rspecs/manifest/jbs-gpolab-cafebeefface.rspec
    11861227}}}