Beispiel #1
0
    api_mod.STLClient = STLDummy
    api_mod.STLFlowLatencyStats = STLDummy
    api_mod.STLFlowStats = STLDummy
    api_mod.STLPktBuilder = STLDummy
    api_mod.STLScVmRaw = STLDummy
    api_mod.STLStream = STLDummy
    api_mod.STLTXCont = STLDummy
    api_mod.STLVmFixChecksumHw = STLDummy
    api_mod.STLVmFixIpv4 = STLDummy
    api_mod.STLVmFlowVar = STLDummy
    api_mod.STLVmFlowVarRepeatableRandom = STLDummy
    api_mod.STLVmTupleGen = STLDummy
    api_mod.STLVmWrFlowVar = STLDummy
    api_mod.UDP = STLDummy
    api_mod.bind_layers = STLDummy
    api_mod.FlagsField = STLDummy
    api_mod.Packet = STLDummy
    api_mod.ThreeBytesField = STLDummy
    api_mod.XByteField = STLDummy

    common_mod = ModuleType('trex.common')
    trex_lib_mod.common = common_mod
    sys.modules['trex.common'] = common_mod
    services_mod = ModuleType('trex.common.services')
    common_mod.services = services_mod
    sys.modules['trex.common.services'] = services_mod
    arp_mod = ModuleType('trex.common.services.trex_service_arp')
    services_mod.trex_stl_service_arp = arp_mod
    sys.modules['trex.common.services.trex_service_arp'] = arp_mod
    arp_mod.ServiceARP = STLDummy