Module Expr Str Import alias Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias alias alias ImportFrom alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Print BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad While CompareGt NameLoad Num body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr keyword AttributeLoad NameLoad attr Index Str If CompareEq Call NameLoad NameLoad NameLoad body Return NameLoad Expr Call NameLoad CompareLtE Call NameLoad NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore BinOpSub NameLoad Num Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore BinOpAdd NameLoad SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr keyword SubscriptLoad NameLoad Index Str Index Str For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad CompareEq NameLoad NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Print Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword BinOpAdd NameLoad Str keyword Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Str Str Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Assign NameStore Call NameLoad keyword BinOpAdd NameLoad Str keyword Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Str Str Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Assign NameStore Call NameLoad keyword BinOpAdd NameLoad Str keyword Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Str Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Print Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad Call NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
    Network Data Model Test

    1) Create a slice1
    2) Create instance1 on slice1
    3) Verify one quantum network created for instance1
    4) Create a private network, network1
    5) Connect network1 to slice1
    6) Create instance1_2 on slice1
    7) Verify two quantum networks created for instance1_2
 N/A os N/A json N/A sys N/A time N/A N/A N/A N/A sys path append /opt/xos N/A N/A N/A N/A os environ setdefault DJANGO_SETTINGS_MODULE xos.settings openstack.manager OpenStackManager core.models Slice Instance ServiceClass Reservation Tag Network User Node Image Deployment Site NetworkTemplate NetworkSlice planetstacktest PlanetStackTest fail_unless fail NetworkTest N/A PlanetStackTest N/A __init__ N/A N/A self N/A N/A N/A N/A N/A PlanetStackTest __init__ self N/A wait_for_ports N/A N/A self instance count max_time N/A 1 120 N/A N/A N/A waiting for %d ports on %s N/A count N/A str instance N/A N/A max_time 0 N/A N/A ports N/A N/A N/A N/A N/A N/A N/A self manager driver shell quantum list_ports device_id N/A instance instance_id N/A ports N/A N/A N/A len ports count N/A N/A ports N/A N/A fail_unless N/A N/A len ports count too many ports N/A N/A N/A time sleep 10 N/A max_time N/A max_time 10 N/A N/A fail timed out while waiting for port creation N/A ports_to_networks N/A N/A self ports N/A N/A N/A networks N/A N/A port ports N/A N/A port_networks N/A networks N/A N/A N/A N/A N/A N/A N/A self manager driver shell quantum list_networks id N/A port N/A network_id N/A networks N/A network port_networks N/A N/A N/A N/A network networks N/A N/A N/A N/A networks append network N/A networks N/A ports_to_network_names N/A N/A self ports N/A N/A N/A network_names N/A N/A network N/A N/A self ports_to_networks ports N/A N/A N/A N/A network_names append N/A network N/A name N/A network_names N/A verify_network_names N/A N/A self ports network_names N/A N/A N/A port_network_names N/A sorted N/A N/A self ports_to_network_names ports N/A network_names N/A sorted network_names N/A N/A fail_unless N/A port_network_names network_names N/A mismatched network names: %s != %s N/A N/A str port_network_names N/A str network_names N/A    verified network ports to N/A N/A , join port_network_names N/A test_slice1 N/A N/A self N/A N/A N/A slice1Name N/A N/A self make_slice_name N/A slice1 N/A Slice name slice1Name omf_friendly True site N/A self testSite creator N/A self testUser N/A slice1 N/A N/A self save_and_wait_for_enacted slice1 nonempty_fields N/A tenant_id N/A instance1 N/A Instance image N/A self testImage creator N/A self testUser slice slice1 node N/A self testNode deploymentNetwork N/A self testDeployment N/A instance1 N/A N/A self save_and_wait_for_enacted instance1 nonempty_fields N/A instance_id ip N/A ports N/A N/A self wait_for_ports instance1 count 1 N/A N/A N/A self verify_network_names ports N/A N/A slice1 name N/A network1 N/A Network name N/A slice1Name -pvt template N/A N/A self get_network_template private owner slice1 N/A network1 N/A N/A self save_and_wait_for_enacted network1 nonempty_fields N/A network_id subnet_id router_id subnet N/A network1_slice1 N/A NetworkSlice network network1 slice slice1 N/A N/A N/A network1_slice1 save N/A instance1_2 N/A Instance image N/A self testImage creator N/A self testUser slice slice1 node N/A self testNode deploymentNetwork N/A self testDeployment N/A instance1_2 N/A N/A self save_and_wait_for_enacted instance1_2 nonempty_fields N/A instance_id ip N/A ports N/A N/A self wait_for_ports instance1_2 count 2 N/A N/A N/A self verify_network_names ports N/A N/A slice1 name N/A network1 name N/A N/A self slice1 slice1 N/A N/A self network1 network1 N/A test_slice2 N/A N/A self N/A N/A N/A slice2Name N/A N/A self make_slice_name N/A slice2 N/A Slice name slice2Name omf_friendly True site N/A self testSite creator N/A self testUser N/A slice2 N/A N/A self save_and_wait_for_enacted slice2 nonempty_fields N/A tenant_id N/A network2 N/A Network name N/A slice2Name -pvt template N/A N/A self get_network_template private owner slice2 N/A network2 N/A N/A self save_and_wait_for_enacted network2 nonempty_fields N/A network_id subnet_id router_id subnet N/A network2_slice2 N/A NetworkSlice network network2 slice slice2 N/A N/A N/A network2_slice2 save N/A instance2_1 N/A Instance image N/A self testImage creator N/A self testUser slice slice2 node N/A self testNode deploymentNetwork N/A self testDeployment N/A instance2_1 N/A N/A self save_and_wait_for_enacted instance2_1 nonempty_fields N/A instance_id ip N/A ports N/A N/A self wait_for_ports instance2_1 count 2 N/A N/A N/A self verify_network_names ports N/A N/A slice2 name N/A network2 name N/A N/A self slice2 slice2 N/A N/A self network2 network2 N/A test_shared_private_net N/A N/A self N/A N/A N/A N/A N/A N/A N/A self network2 permittedSlices add N/A self slice1 N/A network2_slice1 N/A NetworkSlice network N/A self network2 slice N/A self slice1 N/A N/A N/A network2_slice1 save N/A instance1_3 N/A Instance image N/A self testImage creator N/A self testUser slice N/A self slice1 node N/A self testNode deploymentNetwork N/A self testDeployment N/A instance1_3 N/A N/A self save_and_wait_for_enacted instance1_3 nonempty_fields N/A instance_id ip N/A ports N/A N/A self wait_for_ports instance1_3 count 3 N/A N/A N/A self verify_network_names ports N/A N/A N/A self slice1 name N/A N/A self network1 name N/A N/A self network2 name N/A test_nat_net N/A N/A self N/A N/A N/A slice3Name N/A N/A self make_slice_name N/A slice3 N/A Slice name slice3Name omf_friendly True site N/A self testSite creator N/A self testUser N/A slice3 N/A N/A self save_and_wait_for_enacted slice3 nonempty_fields N/A tenant_id N/A network3 N/A Network name N/A slice3Name -nat template N/A N/A self get_network_template private-nat owner slice3 N/A network3 N/A N/A self save_and_wait_for_enacted network3 nonempty_fields N/A network_id subnet_id subnet N/A network3_slice3 N/A NetworkSlice network network3 slice slice3 N/A N/A N/A network3_slice3 save N/A instance3_1 N/A Instance image N/A self testImage creator N/A self testUser slice slice3 node N/A self testNode deploymentNetwork N/A self testDeployment N/A instance3_1 N/A N/A self save_and_wait_for_enacted instance3_1 nonempty_fields N/A instance_id ip N/A ports N/A N/A self wait_for_ports instance3_1 count 2 N/A N/A N/A self verify_network_names ports N/A N/A slice3 name nat-net N/A run N/A N/A self N/A N/A N/A N/A N/A self setup N/A N/A N/A N/A N/A self test_slice1 N/A N/A N/A self test_slice2 N/A N/A N/A self test_shared_private_net N/A N/A N/A self test_nat_net N/A SUCCESS N/A N/A N/A N/A self cleanup N/A N/A main N/A N/A N/A N/A N/A N/A N/A N/A NetworkTest run N/A N/A N/A __name__ __main__ N/A N/A N/A main