Commit 88b1fa4c authored by Jialin Li's avatar Jialin Li
Browse files

bmv2: move p4 path to a BMV2Net parameter

parent d7d3abd8
......@@ -915,6 +915,7 @@ class BMV2Net(NetSim):
def __init__(self):
super().__init__()
self.sync = False
self.p4_path = 'sims/net/p4/basic.json'
def run_cmd(self, env):
cmd = (
......@@ -932,7 +933,7 @@ class BMV2Net(NetSim):
for _, n in self.connect_sockets(env):
cmd += f' -i {port}@{n}'
port += 1
cmd += ' ' + env.repodir + '/sims/net/p4/basic.json'
cmd += f' {env.repodir}/{self.p4_path}'
print(cmd)
......
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