Skip to content

Commit 7238922

Browse files
authored
Merge pull request #68 from Botinoc/dev
Cisco ASA: fixed issue with cisco_object
2 parents c427aca + 10e8738 commit 7238922

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

CiscoMigration/CiscoCommands.cs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,20 +1484,23 @@ public override void Parse(CiscoCommand command, CiscoCommand prevCommand, Dicti
14841484

14851485
if (ciscoIds.ContainsKey(DestinationIp))
14861486
{
1487-
var refObj = (Cisco_Object)ciscoIds[DestinationIp];
1488-
if (refObj != null)
1487+
if (ciscoIds[DestinationIp].GetType().Name != "Cisco_GroupObject")
14891488
{
1490-
switch (refObj.ObjectType)
1489+
var refObj = (Cisco_Object)ciscoIds[DestinationIp];
1490+
if (refObj != null)
14911491
{
1492-
case Cisco_Object.ObjectTypes.Host:
1493-
DestinationIp = refObj.HostAddress;
1494-
destinationIpResolved = true;
1495-
break;
1492+
switch (refObj.ObjectType)
1493+
{
1494+
case Cisco_Object.ObjectTypes.Host:
1495+
DestinationIp = refObj.HostAddress;
1496+
destinationIpResolved = true;
1497+
break;
14961498

1497-
case Cisco_Object.ObjectTypes.Network:
1498-
DestinationIp = refObj.Network;
1499-
destinationIpResolved = true;
1500-
break;
1499+
case Cisco_Object.ObjectTypes.Network:
1500+
DestinationIp = refObj.Network;
1501+
destinationIpResolved = true;
1502+
break;
1503+
}
15011504
}
15021505
}
15031506
}

0 commit comments

Comments
 (0)