Module Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryFinally body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad finalbody Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest N/A sys N/A os N/A N/A N/A N/A sys path append N/A N/A N/A N/A os path dirname __file__ /../../.. N/A simple_cfg 
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow.fuzzer import Fuzzer
from sts.simulation_state import SimulationConfig

# Use POX as our controller
command_line = "./pox/pox.py --no-cli openflow.of_01 --address=__address__ --port=__port__"
controllers = [ControllerConfig(command_line)]

topology_class = MeshTopology
topology_params = "num_switches=4"
simulation_config = SimulationConfig(controller_configs=controllers,
                                     topology_class=topology_class,
                                     topology_params=topology_params)

control_flow = Fuzzer(simulation_config, steps=10, fuzzer_params='config.fuzzer_simple_test_params')
 N/A params 
switch_failure_rate = 0.5
switch_recovery_rate = 0.5
dataplane_drop_rate = 0.5
dataplane_delay_rate = 0.5
controlplane_block_rate = 0.5
controlplane_unblock_rate = 0.5
ofp_message_receipt_rate = 0.5
ofp_message_send_rate = 0.5
ofp_cmd_passthrough_rate = 1.0
link_failure_rate = 0.5
link_recovery_rate = 0.5
controller_crash_rate = 0.1
controller_recovery_rate = 0.5
traffic_generation_rate = 0.5
host_migration_rate = 0.5
intracontroller_block_rate = 0.0
intracontroller_unblock_rate = 0.0
 FuzzerTest N/A N/A unittest TestCase N/A N/A tmpcfg config/fuzzer_simple_test.py N/A tmpparamsfile config/fuzzer_simple_test_params.py N/A tmpcfgpyc config/fuzzer_simple_test.pyc N/A tmpcfgmodule config.fuzzer_simple_test write_simple_cfg N/A N/A self N/A N/A N/A cfg N/A open N/A self tmpcfg w N/A N/A N/A cfg write simple_cfg N/A N/A N/A cfg close N/A write_params N/A N/A self N/A N/A N/A output N/A open N/A self tmpparamsfile w N/A N/A N/A output write params N/A N/A N/A output close N/A basic_test N/A N/A self N/A N/A N/A N/A N/A N/A N/A self write_simple_cfg N/A N/A N/A self write_params N/A ret N/A N/A os system N/A ./simulator.py -c %s N/A self tmpcfgmodule N/A N/A N/A self assertEqual 0 ret N/A N/A N/A N/A os unlink N/A self tmpcfg N/A N/A N/A os unlink N/A self tmpparamsfile N/A N/A N/A N/A os path exists N/A self tmpcfgpyc N/A N/A N/A N/A os unlink N/A self tmpcfgpyc N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main