Skip to content

Commit

Permalink
Merge pull request #110 from jbemmel/patch-1
Browse files Browse the repository at this point in the history
Create dummy SFM connection for IXR-ec too
  • Loading branch information
hellt authored Apr 11, 2023
2 parents 1f3a812 + 2a6a1bf commit e4c5282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sros/docker/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,9 +871,9 @@ def gen_mgmt(self):
res.append("-netdev")
res.append("bridge,br=br-mgmt,id=br-mgmt" % {"i": 0})

if "chassis=ixr-r6" in self.variant["timos_line"]:
if "chassis=ixr-r6" in self.variant["timos_line"] or "chassis=ixr-ec" in self.variant["timos_line"]:
logger.debug(
"detected ixr-r6 chassis, creating a dummy network device for SFM connection"
"detected ixr-r6/ec chassis, creating a dummy network device for SFM connection"
)
res.append(f"-device virtio-net-pci,netdev=dummy,mac={vrnetlab.gen_mac(0)}")
res.append("-netdev tap,ifname=sfm-dummy,id=dummy,script=no,downscript=no")
Expand Down

0 comments on commit e4c5282

Please sign in to comment.