From f79b2b061b93b46339c5234b4ec66ed59c499bcf Mon Sep 17 00:00:00 2001 From: Joe Bowen Date: Fri, 16 May 2014 10:15:11 -0600 Subject: [PATCH] Updated vpcs to allow up to 512 interfaces to start --- gns3server/modules/vpcs/vpcs_device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/vpcs/vpcs_device.py b/gns3server/modules/vpcs/vpcs_device.py index 3e59fbba..94282fde 100644 --- a/gns3server/modules/vpcs/vpcs_device.py +++ b/gns3server/modules/vpcs/vpcs_device.py @@ -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)