From 5ae8728ee6dc92e7bbbea7099ad8b4c0bc55e995 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 1 Mar 2015 10:41:27 -0700 Subject: [PATCH] Fixes ATM switch. --- gns3server/modules/dynamips/nodes/atm_switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/dynamips/nodes/atm_switch.py b/gns3server/modules/dynamips/nodes/atm_switch.py index 0fb9e1e1..7c1aa495 100644 --- a/gns3server/modules/dynamips/nodes/atm_switch.py +++ b/gns3server/modules/dynamips/nodes/atm_switch.py @@ -188,7 +188,7 @@ class ATMSwitch(Device): source_port, source_vpi, source_vci = map(int, match_source_pvc.group(1, 2, 3)) destination_port, destination_vpi, destination_vci = map(int, match_destination_pvc.group(1, 2, 3)) if self.has_port(destination_port): - if (source_port, source_vpi, source_vci) not in self.mapping and \ + if (source_port, source_vpi, source_vci) not in self.mappings and \ (destination_port, destination_vpi, destination_vci) not in self.mappings: yield from self.map_pvc(source_port, source_vpi, source_vci, destination_port, destination_vpi, destination_vci) yield from self.map_pvc(destination_port, destination_vpi, destination_vci, source_port, source_vpi, source_vci)