mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-30 20:28:08 +00:00
Updated vpcs to allow up to 512 interfaces to start
This commit is contained in:
parent
ec44d70c7b
commit
f79b2b061b
@ -47,11 +47,11 @@ class VPCSDevice(object):
|
||||
|
||||
def __init__(self, path, base_script_file, working_dir, host="127.0.0.1", name=None):
|
||||
|
||||
# find an instance identifier (1 <= id <= 255)
|
||||
# find an instance identifier (1 <= id <= 512)
|
||||
# This 255 limit is due to a restriction on the number of possible
|
||||
# mac addresses given in VPCS using the -m option
|
||||
self._id = 0
|
||||
for identifier in range(1, 256):
|
||||
for identifier in range(1, 513):
|
||||
if identifier not in self._instances:
|
||||
self._id = identifier
|
||||
self._instances.append(self._id)
|
||||
|
Loading…
Reference in New Issue
Block a user