docs: refresh & structure overhaul
[nfvbench.git] / test / mock_trex.py
index ed6b20e..cb8a081 100644 (file)
@@ -30,8 +30,6 @@ except ImportError:
     class STLDummy(Exception):
         """Dummy class."""
 
-        pass
-
     trex_lib_mod = ModuleType('trex')
     sys.modules['trex'] = trex_lib_mod
     stl_lib_mod = ModuleType('trex.stl')
@@ -45,7 +43,9 @@ except ImportError:
     api_mod.CTRexVmInsFixHwCs = STLDummy
     api_mod.Dot1Q = STLDummy
     api_mod.Ether = STLDummy
+    api_mod.ARP = STLDummy
     api_mod.IP = STLDummy
+    api_mod.ARP = STLDummy
     api_mod.STLClient = STLDummy
     api_mod.STLFlowLatencyStats = STLDummy
     api_mod.STLFlowStats = STLDummy
@@ -53,9 +53,12 @@ except ImportError:
     api_mod.STLScVmRaw = STLDummy
     api_mod.STLStream = STLDummy
     api_mod.STLTXCont = STLDummy
+    api_mod.STLTXMultiBurst = 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
@@ -77,4 +80,3 @@ except ImportError:
 
 def no_op():
     """Empty function."""
-    pass