mpenning / ciscoconfparse

Parse, Audit, Query, Build, and Modify Arista / Cisco / Juniper / Palo Alto / F5 configurations.
http://www.pennington.net/py/ciscoconfparse/
GNU General Public License v3.0
793 stars 220 forks source link

key error in ASAObjGroupService #157

Closed gdczz closed 3 years ago

gdczz commented 5 years ago

File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ciscoconfparse/models_asa.py", line 627, in ports port_spec=port, syntax='asa')) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ciscoconfparse/ccp_util.py", line 708, in init self.port_list = [int(ports.get(port_spec, port_spec))] ValueError: invalid literal for int() with base 10: 'eq'

_RE_PORTOBJ_STR should be modified the regular expression of service-object.

mpenning commented 5 years ago