"...git@developer.sourcefind.cn:cnjsdfcy/simbricks.git" did not exist on "0ffe3dc10902984922e2b758ad878fbdaeba29d4"
Commit 3fa7661e authored by Jialin Li's avatar Jialin Li
Browse files

experiments: add pcap support to net_wire

parent 145ad9ea
...@@ -239,10 +239,13 @@ class I40eNIC(NICSim): ...@@ -239,10 +239,13 @@ class I40eNIC(NICSim):
class WireNet(NetSim): class WireNet(NetSim):
def run_cmd(self, env): def run_cmd(self, env):
assert len(self.nics) == 2 assert len(self.nics) == 2
return '%s/sims/net/wire/net_wire %s %s %d %d %d' % \ cmd = '%s/sims/net/wire/net_wire %s %s %d %d %d' % \
(env.repodir, env.nic_eth_path(self.nics[0]), (env.repodir, env.nic_eth_path(self.nics[0]),
env.nic_eth_path(self.nics[1]), env.nic_eth_path(self.nics[1]),
self.sync_mode, self.sync_period, self.eth_latency) self.sync_mode, self.sync_period, self.eth_latency)
if len(env.pcap_file) > 0:
cmd += ' ' + env.pcap_file
return cmd
class SwitchNet(NetSim): class SwitchNet(NetSim):
def run_cmd(self, env): def run_cmd(self, env):
......
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