"examples/git@developer.sourcefind.cn:OpenDAS/apex.git" did not exist on "90e5b05a2d2ff3e1f59328bc284aeff5d4abe951"
Commit 917aaeb9 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: parameter to set HW mac address for nicbm nic models

parent 4949bc00
...@@ -90,6 +90,7 @@ class PCIDevSim(Simulator): ...@@ -90,6 +90,7 @@ class PCIDevSim(Simulator):
class NICSim(PCIDevSim): class NICSim(PCIDevSim):
network = None network = None
mac = None
eth_latency = 500 eth_latency = 500
def __init__(self): def __init__(self):
...@@ -104,6 +105,8 @@ class NICSim(PCIDevSim): ...@@ -104,6 +105,8 @@ class NICSim(PCIDevSim):
(env.dev_pci_path(self), env.nic_eth_path(self), (env.dev_pci_path(self), env.nic_eth_path(self),
env.dev_shm_path(self), self.sync_mode, self.start_tick, env.dev_shm_path(self), self.sync_mode, self.start_tick,
self.sync_period, self.pci_latency, self.eth_latency) self.sync_period, self.pci_latency, self.eth_latency)
if self.mac is not None:
cmd += ' ' + (''.join(reversed(self.mac.split(':'))))
if extra is not None: if extra is not None:
cmd += ' ' + extra cmd += ' ' + extra
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment