You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Martin,
This one I correcting manually as it is stopping parse when it find a case like this. I ll leave as suggestion for future if possible.
Trying to parse the following service group:
object-group service DM_INLINE_SERVICE_8
service-object tcp
object-group service DM_INLINE_SERVICE_9
service-object udp
parse output:
Traceback (most recent call last):
File "c2c.py", line 171, in <module>
c2c.importConfig(args.cpPortsFile,args.cpNetObjFile,args.ciscoFile)
File "lib/cisco2checkpoint.py", line 1758, in importConfig
self._importPortGroups(self.parser.getPortGroups())
File "lib/cisco2checkpoint.py", line 1842, in _importPortGroups
self.addObj(CiscoServiceGroup(self, newGrp))
File "lib/cisco2checkpoint.py", line 1062, in __init__
for mm_r in parsedObj.result_dict:
File "lib/ciscoconfparse_patch.py", line 500, in result_dict
.format(obj.text))
ValueError: [FATAL] models_asa cannot parse ' service-object tcp '
My suggestion for tcp/udp is to replace with following:
object-group service tcp_all tcp
port-object range 1 65535
object-group service udp_all udp
port-object range 1 65535
I saw there is an ANY_ on config.py, but not sure how can I add tcp or udp.
thanks,
The text was updated successfully, but these errors were encountered:
Hi Martin,
This one I correcting manually as it is stopping parse when it find a case like this. I ll leave as suggestion for future if possible.
Trying to parse the following service group:
parse output:
My suggestion for tcp/udp is to replace with following:
I saw there is an ANY_ on config.py, but not sure how can I add tcp or udp.
thanks,
The text was updated successfully, but these errors were encountered: