Unverified Commit ddd78a7c authored by Antoine Kaufmann's avatar Antoine Kaufmann Committed by GitHub
Browse files

orchestration: support absolute p4 path for bmv2

parent 88b1fa4c
......@@ -933,6 +933,10 @@ class BMV2Net(NetSim):
for _, n in self.connect_sockets(env):
cmd += f' -i {port}@{n}'
port += 1
if self.p4_path.startswith('/'):
cmd += f' {self.p4_path}'
else:
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