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
799 stars 220 forks source link

[Bug]: Remove duplicated obj init code from CiscoConfParse()._bootstrap_obj_init_foo() #264

Closed mpenning closed 1 year ago

mpenning commented 1 year ago

Contact Details

N/A

What happened?

See CiscoConfParse()._bootstrap_obj_init_ios() (plus nxos, asa, and junos)... the object init code is mostly duplicated inline for each syntax...

This issue will track refactoring the common code into a dedicated function named _build_cfgobj_from_text().

CiscoConfParse Version

1.7.14

What Operating System are you using?

Microsoft Windows, MacOS, Linux - Debian, Ubuntu, CentOS, RHEL or others, OpenBSD, FreeBSD, NetBSD

What Python version(s) have this problem?

Python 3.x

Show us how to reproduce the problem. Please tell us if the problem is specific to certain inputs or situations.

N/A

Python tracebacks

N/A

Relevant log output

N/A

Code of Conduct

mpenning commented 1 year ago

resolved