From bbce6b2c5c2da384fbb4cdbad62ddb0385fbed01 Mon Sep 17 00:00:00 2001 From: Joe Bowen Date: Tue, 6 May 2014 10:52:34 -0600 Subject: [PATCH] Added NIO TAP support --- gns3server/modules/vpcs/vpcs_device.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gns3server/modules/vpcs/vpcs_device.py b/gns3server/modules/vpcs/vpcs_device.py index bec99df4..5581a952 100644 --- a/gns3server/modules/vpcs/vpcs_device.py +++ b/gns3server/modules/vpcs/vpcs_device.py @@ -456,6 +456,7 @@ class VPCSDevice(object): command.extend(["-e"]) #, str(nio.tap_device)]) #TODO: Fix, currently vpcs doesn't allow specific tap_device command.extend(["-m", str(self._id)]) #The unique ID is used to set the mac address offset + command.extend(["-i", str(1)]) #Option to start only one pc instance if self._script_file: command.extend([self._script_file]) return command @@ -463,9 +464,9 @@ class VPCSDevice(object): @property def script_file(self): """ - Returns the startup-config for this VPCS instance. + Returns the script-file for this VPCS instance. - :returns: path to startup-config file + :returns: path to script-file file """ return self._script_file @@ -473,9 +474,9 @@ class VPCSDevice(object): @script_file.setter def script_file(self, script_file): """ - Sets the startup-config for this VPCS instance. + Sets the script-file for this VPCS instance. - :param script_file: path to startup-config file + :param script_file: path to script-file file """ self._script_file = script_file