diff --git a/gns3server/compute/base_node.py b/gns3server/compute/base_node.py index 5f1ba36a..47640cf6 100644 --- a/gns3server/compute/base_node.py +++ b/gns3server/compute/base_node.py @@ -602,11 +602,11 @@ class BaseNode: """ yield from self._ubridge_send('bridge reset_packet_filters ' + bridge_name) i = 0 - for (type, values) in filters.items(): + for (filter_type, values) in filters.items(): cmd = "bridge add_packet_filter {bridge_name} {filter_name} {filter_type} {filter_value}".format( bridge_name=bridge_name, filter_name="filter" + str(i), - filter_type=type, + filter_type=filter_type, filter_value=" ".join([str(v) for v in values])) yield from self._ubridge_send(cmd) i += 1 diff --git a/gns3server/compute/vpcs/vpcs_vm.py b/gns3server/compute/vpcs/vpcs_vm.py index 91f7c677..8de816aa 100644 --- a/gns3server/compute/vpcs/vpcs_vm.py +++ b/gns3server/compute/vpcs/vpcs_vm.py @@ -381,7 +381,7 @@ class VPCSVM(BaseNode): if self.ubridge: yield from self._add_ubridge_udp_connection("VPCS-{}".format(self._id), self._local_udp_tunnel[1], nio) elif self.is_running(): - raise VPCSError("Sorry, adding a link to a started VPCS instance is not supported without using uBridge.") + raise VPCSError("Sorry, updating a link to a started VPCS instance is not supported without using uBridge.") self._ethernet_adapter.add_nio(port_number, nio) log.info('VPCS "{name}" [{id}]: {nio} added to port {port_number}'.format(name=self._name, diff --git a/gns3server/controller/link.py b/gns3server/controller/link.py index b36b30cb..585a7e7e 100644 --- a/gns3server/controller/link.py +++ b/gns3server/controller/link.py @@ -75,7 +75,7 @@ FILTERS = [ { "type": "corrupt", "name": "Corrupt", - "description": "The percentage represents the chance for a packet to be corrupt", + "description": "The percentage represents the chance for a packet to be corrupted", "parameters": [ { "name": "Frequency",