diff --git a/CiscoMigration/CiscoCommands.cs b/CiscoMigration/CiscoCommands.cs index 611fecc..ee900ea 100644 --- a/CiscoMigration/CiscoCommands.cs +++ b/CiscoMigration/CiscoCommands.cs @@ -1484,20 +1484,23 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti if (ciscoIds.ContainsKey(DestinationIp)) { - var refObj = (Cisco_Object)ciscoIds[DestinationIp]; - if (refObj != null) + if (ciscoIds[DestinationIp].GetType().Name != "Cisco_GroupObject") { - switch (refObj.ObjectType) + var refObj = (Cisco_Object)ciscoIds[DestinationIp]; + if (refObj != null) { - case Cisco_Object.ObjectTypes.Host: - DestinationIp = refObj.HostAddress; - destinationIpResolved = true; - break; + switch (refObj.ObjectType) + { + case Cisco_Object.ObjectTypes.Host: + DestinationIp = refObj.HostAddress; + destinationIpResolved = true; + break; - case Cisco_Object.ObjectTypes.Network: - DestinationIp = refObj.Network; - destinationIpResolved = true; - break; + case Cisco_Object.ObjectTypes.Network: + DestinationIp = refObj.Network; + destinationIpResolved = true; + break; + } } } }