mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +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):
|
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
|
# This 255 limit is due to a restriction on the number of possible
|
||||||
# mac addresses given in VPCS using the -m option
|
# mac addresses given in VPCS using the -m option
|
||||||
self._id = 0
|
self._id = 0
|
||||||
for identifier in range(1, 256):
|
for identifier in range(1, 513):
|
||||||
if identifier not in self._instances:
|
if identifier not in self._instances:
|
||||||
self._id = identifier
|
self._id = identifier
|
||||||
self._instances.append(self._id)
|
self._instances.append(self._id)
|
||||||
|
Loading…
Reference in New Issue
Block a user