I expected the usual config file processing, but instead received multiple instances of
TypeError: super() takes no keyword arguments
2024-05-07 13:25:40.119 | ERROR | ciscoconfparse2.ciscoconfparse2:config_line_factory:4028 - An error has been caught in function 'config_line_factory', process 'MainProcess' (99580), thread 'MainThread' (140704383873280):
Traceback (most recent call last):
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 19, in <module>
parser = parse_a_config()
โ <function parse_a_config at 0x103e94fe0>
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 16, in parse_a_config
parse = CiscoConfParse(config.splitlines(), syntax='ios', factory=True)
โ โ โ <method 'splitlines' of 'str' objects>
โ โ '\nhostname Switch\nspanning-tree portfast default\nspanning-tree portfast bpduguard default\n!\ninterface GigabitEthernet1/0...
โ <class 'ciscoconfparse2.ciscoconfparse2.CiscoConfParse'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2210, in __init__
self.config_objs = ConfigList(
โ โ โ <class 'ciscoconfparse2.ciscoconfparse2.ConfigList'>
โ โ <member 'config_objs' of 'CiscoConfParse' objects>
โ <CiscoConfParse: 0 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_line...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 674, in __init__
obj = config_line_factory(
โ <function config_line_factory at 0x106868ea0>
> File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 4028, in config_line_factory
basecfgline_subclass = _cls(
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/models_cisco.py", line 2889, in __init__
super(IOSIntfGlobal).__init__(*args, **kwargs)
โ โ โ {'all_lines': [], 'line': 'spanning-tree portfast default'}
โ โ ()
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
TypeError: super() takes no keyword arguments
2024-05-07 13:25:40.125 | ERROR | ciscoconfparse2.ciscoconfparse2:config_line_factory:4028 - An error has been caught in function 'config_line_factory', process 'MainProcess' (99580), thread 'MainThread' (140704383873280):
Traceback (most recent call last):
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 19, in <module>
parser = parse_a_config()
โ <function parse_a_config at 0x103e94fe0>
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 16, in parse_a_config
parse = CiscoConfParse(config.splitlines(), syntax='ios', factory=True)
โ โ โ <method 'splitlines' of 'str' objects>
โ โ '\nhostname Switch\nspanning-tree portfast default\nspanning-tree portfast bpduguard default\n!\ninterface GigabitEthernet1/0...
โ <class 'ciscoconfparse2.ciscoconfparse2.CiscoConfParse'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2210, in __init__
self.config_objs = ConfigList(
โ โ โ <class 'ciscoconfparse2.ciscoconfparse2.ConfigList'>
โ โ <member 'config_objs' of 'CiscoConfParse' objects>
โ <CiscoConfParse: 0 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_line...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 674, in __init__
obj = config_line_factory(
โ <function config_line_factory at 0x106868ea0>
> File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 4028, in config_line_factory
basecfgline_subclass = _cls(
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/models_cisco.py", line 2889, in __init__
super(IOSIntfGlobal).__init__(*args, **kwargs)
โ โ โ {'all_lines': [], 'line': 'spanning-tree portfast bpduguard default'}
โ โ ()
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
TypeError: super() takes no keyword arguments
2024-05-07 13:25:40.119 | ERROR | ciscoconfparse2.ciscoconfparse2:config_line_factory:4028 - An error has been caught in function 'config_line_factory', process 'MainProcess' (99580), thread 'MainThread' (140704383873280):
Traceback (most recent call last):
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 19, in <module>
parser = parse_a_config()
โ <function parse_a_config at 0x103e94fe0>
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 16, in parse_a_config
parse = CiscoConfParse(config.splitlines(), syntax='ios', factory=True)
โ โ โ <method 'splitlines' of 'str' objects>
โ โ '\nhostname Switch\nspanning-tree portfast default\nspanning-tree portfast bpduguard default\n!\ninterface GigabitEthernet1/0...
โ <class 'ciscoconfparse2.ciscoconfparse2.CiscoConfParse'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2210, in __init__
self.config_objs = ConfigList(
โ โ โ <class 'ciscoconfparse2.ciscoconfparse2.ConfigList'>
โ โ <member 'config_objs' of 'CiscoConfParse' objects>
โ <CiscoConfParse: 0 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_line...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 674, in __init__
obj = config_line_factory(
โ <function config_line_factory at 0x106868ea0>
> File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 4028, in config_line_factory
basecfgline_subclass = _cls(
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/models_cisco.py", line 2889, in __init__
super(IOSIntfGlobal).__init__(*args, **kwargs)
โ โ โ {'all_lines': [], 'line': 'spanning-tree portfast default'}
โ โ ()
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
TypeError: super() takes no keyword arguments
2024-05-07 13:25:40.127 | ERROR | ciscoconfparse2.ciscoconfparse2:config_line_factory:4028 - An error has been caught in function 'config_line_factory', process 'MainProcess' (99580), thread 'MainThread' (140704383873280):
Traceback (most recent call last):
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 19, in <module>
parser = parse_a_config()
โ <function parse_a_config at 0x103e94fe0>
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 16, in parse_a_config
parse = CiscoConfParse(config.splitlines(), syntax='ios', factory=True)
โ โ โ <method 'splitlines' of 'str' objects>
โ โ '\nhostname Switch\nspanning-tree portfast default\nspanning-tree portfast bpduguard default\n!\ninterface GigabitEthernet1/0...
โ <class 'ciscoconfparse2.ciscoconfparse2.CiscoConfParse'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2210, in __init__
self.config_objs = ConfigList(
โ โ โ <class 'ciscoconfparse2.ciscoconfparse2.ConfigList'>
โ โ <member 'config_objs' of 'CiscoConfParse' objects>
โ <CiscoConfParse: 0 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_line...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 739, in __init__
self.data = self.bootstrap(initlist, debug=debug)
โ โ โ โ โ โ 0
โ โ โ โ โ ['', 'hostname Switch', 'spanning-tree portfast default', 'spanning-tree portfast bpduguard default', '!', 'interface Gigabit...
โ โ โ โ <function ConfigList.bootstrap at 0x1068e1e40>
โ โ โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[]>
โ โ []
โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[]>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 1727, in bootstrap
obj = cfgobj_from_text(
โ <function cfgobj_from_text at 0x10680f1a0>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 447, in cfgobj_from_text
obj = config_line_factory(
โ <function config_line_factory at 0x106868ea0>
> File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 4028, in config_line_factory
basecfgline_subclass = _cls(
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/models_cisco.py", line 2889, in __init__
super(IOSIntfGlobal).__init__(*args, **kwargs)
โ โ โ {'all_lines': ['', 'hostname Switch', 'spanning-tree portfast default', 'spanning-tree portfast bpduguard default', '!', 'int...
โ โ ()
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
TypeError: super() takes no keyword arguments
2024-05-07 13:25:40.125 | ERROR | ciscoconfparse2.ciscoconfparse2:config_line_factory:4028 - An error has been caught in function 'config_line_factory', process 'MainProcess' (99580), thread 'MainThread' (140704383873280):
Traceback (most recent call last):
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 19, in <module>
parser = parse_a_config()
โ <function parse_a_config at 0x103e94fe0>
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 16, in parse_a_config
parse = CiscoConfParse(config.splitlines(), syntax='ios', factory=True)
โ โ โ <method 'splitlines' of 'str' objects>
โ โ '\nhostname Switch\nspanning-tree portfast default\nspanning-tree portfast bpduguard default\n!\ninterface GigabitEthernet1/0...
โ <class 'ciscoconfparse2.ciscoconfparse2.CiscoConfParse'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2210, in __init__
self.config_objs = ConfigList(
โ โ โ <class 'ciscoconfparse2.ciscoconfparse2.ConfigList'>
โ โ <member 'config_objs' of 'CiscoConfParse' objects>
โ <CiscoConfParse: 0 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_line...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 674, in __init__
obj = config_line_factory(
โ <function config_line_factory at 0x106868ea0>
> File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 4028, in config_line_factory
basecfgline_subclass = _cls(
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/models_cisco.py", line 2889, in __init__
super(IOSIntfGlobal).__init__(*args, **kwargs)
โ โ โ {'all_lines': [], 'line': 'spanning-tree portfast bpduguard default'}
โ โ ()
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
TypeError: super() takes no keyword arguments
2024-05-07 13:25:40.130 | ERROR | ciscoconfparse2.ciscoconfparse2:config_line_factory:4028 - An error has been caught in function 'config_line_factory', process 'MainProcess' (99580), thread 'MainThread' (140704383873280):
Traceback (most recent call last):
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 19, in <module>
parser = parse_a_config()
โ <function parse_a_config at 0x103e94fe0>
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 16, in parse_a_config
parse = CiscoConfParse(config.splitlines(), syntax='ios', factory=True)
โ โ โ <method 'splitlines' of 'str' objects>
โ โ '\nhostname Switch\nspanning-tree portfast default\nspanning-tree portfast bpduguard default\n!\ninterface GigabitEthernet1/0...
โ <class 'ciscoconfparse2.ciscoconfparse2.CiscoConfParse'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2210, in __init__
self.config_objs = ConfigList(
โ โ โ <class 'ciscoconfparse2.ciscoconfparse2.ConfigList'>
โ โ <member 'config_objs' of 'CiscoConfParse' objects>
โ <CiscoConfParse: 0 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_line...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 739, in __init__
self.data = self.bootstrap(initlist, debug=debug)
โ โ โ โ โ โ 0
โ โ โ โ โ ['', 'hostname Switch', 'spanning-tree portfast default', 'spanning-tree portfast bpduguard default', '!', 'interface Gigabit...
โ โ โ โ <function ConfigList.bootstrap at 0x1068e1e40>
โ โ โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[]>
โ โ []
โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[]>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 1727, in bootstrap
obj = cfgobj_from_text(
โ <function cfgobj_from_text at 0x10680f1a0>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 447, in cfgobj_from_text
obj = config_line_factory(
โ <function config_line_factory at 0x106868ea0>
> File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 4028, in config_line_factory
basecfgline_subclass = _cls(
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/models_cisco.py", line 2889, in __init__
super(IOSIntfGlobal).__init__(*args, **kwargs)
โ โ โ {'all_lines': ['', 'hostname Switch', 'spanning-tree portfast default', 'spanning-tree portfast bpduguard default', '!', 'int...
โ โ ()
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
TypeError: super() takes no keyword arguments
2024-05-07 13:25:40.127 | ERROR | ciscoconfparse2.ciscoconfparse2:config_line_factory:4028 - An error has been caught in function 'config_line_factory', process 'MainProcess' (99580), thread 'MainThread' (140704383873280):
Traceback (most recent call last):
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 19, in <module>
parser = parse_a_config()
โ <function parse_a_config at 0x103e94fe0>
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 16, in parse_a_config
parse = CiscoConfParse(config.splitlines(), syntax='ios', factory=True)
โ โ โ <method 'splitlines' of 'str' objects>
โ โ '\nhostname Switch\nspanning-tree portfast default\nspanning-tree portfast bpduguard default\n!\ninterface GigabitEthernet1/0...
โ <class 'ciscoconfparse2.ciscoconfparse2.CiscoConfParse'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2210, in __init__
self.config_objs = ConfigList(
โ โ โ <class 'ciscoconfparse2.ciscoconfparse2.ConfigList'>
โ โ <member 'config_objs' of 'CiscoConfParse' objects>
โ <CiscoConfParse: 0 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_line...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 739, in __init__
self.data = self.bootstrap(initlist, debug=debug)
โ โ โ โ โ โ 0
โ โ โ โ โ ['', 'hostname Switch', 'spanning-tree portfast default', 'spanning-tree portfast bpduguard default', '!', 'interface Gigabit...
โ โ โ โ <function ConfigList.bootstrap at 0x1068e1e40>
โ โ โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[]>
โ โ []
โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[]>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 1727, in bootstrap
obj = cfgobj_from_text(
โ <function cfgobj_from_text at 0x10680f1a0>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 447, in cfgobj_from_text
obj = config_line_factory(
โ <function config_line_factory at 0x106868ea0>
> File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 4028, in config_line_factory
basecfgline_subclass = _cls(
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/models_cisco.py", line 2889, in __init__
super(IOSIntfGlobal).__init__(*args, **kwargs)
โ โ โ {'all_lines': ['', 'hostname Switch', 'spanning-tree portfast default', 'spanning-tree portfast bpduguard default', '!', 'int...
โ โ ()
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
TypeError: super() takes no keyword arguments
2024-05-07 13:25:40.134 | ERROR | ciscoconfparse2.ciscoconfparse2:config_line_factory:4028 - An error has been caught in function 'config_line_factory', process 'MainProcess' (99580), thread 'MainThread' (140704383873280):
Traceback (most recent call last):
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 19, in <module>
parser = parse_a_config()
โ <function parse_a_config at 0x103e94fe0>
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 16, in parse_a_config
parse = CiscoConfParse(config.splitlines(), syntax='ios', factory=True)
โ โ โ <method 'splitlines' of 'str' objects>
โ โ '\nhostname Switch\nspanning-tree portfast default\nspanning-tree portfast bpduguard default\n!\ninterface GigabitEthernet1/0...
โ <class 'ciscoconfparse2.ciscoconfparse2.CiscoConfParse'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2226, in __init__
self.commit()
โ โ <function CiscoConfParse.commit at 0x1068c6020>
โ <CiscoConfParse: 11 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_lin...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2518, in commit
self.config_objs.commit()
โ โ <member 'config_objs' of 'CiscoConfParse' objects>
โ <CiscoConfParse: 11 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_lin...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 955, in commit
self.data = self.bootstrap(debug=self.debug)
โ โ โ โ โ โ <member 'debug' of 'ConfigList' objects>
โ โ โ โ โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLi...
โ โ โ โ <function ConfigList.bootstrap at 0x1068e1e40>
โ โ โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLi...
โ โ [<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLine # 2 'spanning-tree portfast default'>, <IOSCfgLine # 3 ...
โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLi...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 1727, in bootstrap
obj = cfgobj_from_text(
โ <function cfgobj_from_text at 0x10680f1a0>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 447, in cfgobj_from_text
obj = config_line_factory(
โ <function config_line_factory at 0x106868ea0>
> File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 4028, in config_line_factory
basecfgline_subclass = _cls(
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/models_cisco.py", line 2889, in __init__
super(IOSIntfGlobal).__init__(*args, **kwargs)
โ โ โ {'all_lines': ['', 'hostname Switch', 'spanning-tree portfast default', 'spanning-tree portfast bpduguard default', '!', 'int...
โ โ ()
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>2024-05-07 13:25:40.130 | ERROR | ciscoconfparse2.ciscoconfparse2:config_line_factory:4028 - An error has been caught in function 'config_line_factory', process 'MainProcess' (99580), thread 'MainThread' (140704383873280):
Traceback (most recent call last):
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 19, in <module>
parser = parse_a_config()
โ <function parse_a_config at 0x103e94fe0>
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 16, in parse_a_config
parse = CiscoConfParse(config.splitlines(), syntax='ios', factory=True)
โ โ โ <method 'splitlines' of 'str' objects>
โ โ '\nhostname Switch\nspanning-tree portfast default\nspanning-tree portfast bpduguard default\n!\ninterface GigabitEthernet1/0...
โ <class 'ciscoconfparse2.ciscoconfparse2.CiscoConfParse'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2210, in __init__
self.config_objs = ConfigList(
โ โ โ <class 'ciscoconfparse2.ciscoconfparse2.ConfigList'>
โ โ <member 'config_objs' of 'CiscoConfParse' objects>
โ <CiscoConfParse: 0 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_line...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 739, in __init__
self.data = self.bootstrap(initlist, debug=debug)
โ โ โ โ โ โ 0
โ โ โ โ โ ['', 'hostname Switch', 'spanning-tree portfast default', 'spanning-tree portfast bpduguard default', '!', 'interface Gigabit...
โ โ โ โ <function ConfigList.bootstrap at 0x1068e1e40>
โ โ โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[]>
โ โ []
โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[]>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 1727, in bootstrap
obj = cfgobj_from_text(
โ <function cfgobj_from_text at 0x10680f1a0>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 447, in cfgobj_from_text
obj = config_line_factory(
โ <function config_line_factory at 0x106868ea0>
> File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 4028, in config_line_factory
basecfgline_subclass = _cls(
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/models_cisco.py", line 2889, in __init__
super(IOSIntfGlobal).__init__(*args, **kwargs)
โ โ โ {'all_lines': ['', 'hostname Switch', 'spanning-tree portfast default', 'spanning-tree portfast bpduguard default', '!', 'int...
โ โ ()
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
TypeError: super() takes no keyword arguments
TypeError: super() takes no keyword arguments
2024-05-07 13:25:40.137 | ERROR | ciscoconfparse2.ciscoconfparse2:config_line_factory:4028 - An error has been caught in function 'config_line_factory', process 'MainProcess' (99580), thread 'MainThread' (140704383873280):
Traceback (most recent call last):
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 19, in <module>
parser = parse_a_config()
โ <function parse_a_config at 0x103e94fe0>
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 16, in parse_a_config
parse = CiscoConfParse(config.splitlines(), syntax='ios', factory=True)
โ โ โ <method 'splitlines' of 'str' objects>
โ โ '\nhostname Switch\nspanning-tree portfast default\nspanning-tree portfast bpduguard default\n!\ninterface GigabitEthernet1/0...
โ <class 'ciscoconfparse2.ciscoconfparse2.CiscoConfParse'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2226, in __init__
self.commit()
โ โ <function CiscoConfParse.commit at 0x1068c6020>
โ <CiscoConfParse: 11 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_lin...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2518, in commit
self.config_objs.commit()
โ โ <member 'config_objs' of 'CiscoConfParse' objects>
โ <CiscoConfParse: 11 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_lin.2024-05-07 13:25:40.134 | ERROR | ciscoconfparse2.ciscoconfparse2:config_line_factory:4028 - An error has been caught in function 'config_line_factory', process 'MainProcess' (99580), thread 'MainThread' (140704383873280):
Traceback (most recent call last):
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 19, in <module>
parser = parse_a_config()
โ <function parse_a_config at 0x103e94fe0>
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 16, in parse_a_config
parse = CiscoConfParse(config.splitlines(), syntax='ios', factory=True)
โ ..
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 955, in commit
self.data = self.bootstrap(debug=self.debug)
โ โ โ โ โ โ <member 'debug' of 'ConfigList' objects>
โ โ โ โ โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLi...
โ โ โ โ <function ConfigList.bootstrap at 0x1068e1e40>
โ โ โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLi...
โ โ [<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLine # 2 'spanning-tree portfast default'>, <IOSCfgLine # 3 ...
โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLi...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 1727, in bootstrap
obj = cfgobj_from_text(
โ <function cfgobj_from_text at 0x10680f1a0>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 447, in cfgobj_from_text
obj = config_line_factory(
โ <function config_line_factory at 0x106868ea0>
> File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 4028, in config_line_factory
basecfgline_subclass = _cls(
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/models_cisco.py", line 2889, in __init__
super(IOSIntfGlobal).__init__(*args, **kwargs)
โ โ โ {'all_lines': ['', 'hostname Switch', 'spanning-tree portfast default', 'spanning-tree portfast bpduguard default', '!', 'int...
โ โ ()
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
TypeError: super() takes no keyword arguments
โ โ <method 'splitlines' of 'str' objects>
โ โ '\nhostname Switch\nspanning-tree portfast default\nspanning-tree portfast bpduguard default\n!\ninterface GigabitEthernet1/0...
โ <class 'ciscoconfparse2.ciscoconfparse2.CiscoConfParse'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2226, in __init__
self.commit()
โ โ <function CiscoConfParse.commit at 0x1068c6020>
โ <CiscoConfParse: 11 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_lin...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2518, in commit
self.config_objs.commit()
โ โ <member 'config_objs' of 'CiscoConfParse' objects>
โ <CiscoConfParse: 11 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_lin...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 955, in commit
self.data = self.bootstrap(debug=self.debug)
โ โ โ โ โ โ <member 'debug' of 'ConfigList' objects>
โ โ โ โ โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLi...
โ โ โ โ <function ConfigList.bootstrap at 0x1068e1e40>
โ โ โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLi...
โ โ [<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLine # 2 'spanning-tree portfast default'>, <IOSCfgLine # 3 ...
โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLi...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 1727, in bootstrap
obj = cfgobj_from_text(
โ <function cfgobj_from_text at 0x10680f1a0>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 447, in cfgobj_from_text
obj = config_line_factory(
โ <function config_line_factory at 0x106868ea0>
> File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 4028, in config_line_factory
basecfgline_subclass = _cls(
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/models_cisco.py", line 2889, in __init__
super(IOSIntfGlobal).__init__(*args, **kwargs)
โ โ โ {'all_lines': ['', 'hostname Switch', 'spanning-tree portfast default', 'spanning-tree portfast bpduguard default', '!', 'int...
โ โ ()
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
TypeError: super() takes no keyword arguments
2024-05-07 13:25:40.137 | ERROR | ciscoconfparse2.ciscoconfparse2:config_line_factory:4028 - An error has been caught in function 'config_line_factory', process 'MainProcess' (99580), thread 'MainThread' (140704383873280):
Traceback (most recent call last):
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 19, in <module>
parser = parse_a_config()
โ <function parse_a_config at 0x103e94fe0>
File "/Users/ecoen/Documents/DevOps/Code/testparse.py", line 16, in parse_a_config
parse = CiscoConfParse(config.splitlines(), syntax='ios', factory=True)
โ โ โ <method 'splitlines' of 'str' objects>
โ โ '\nhostname Switch\nspanning-tree portfast default\nspanning-tree portfast bpduguard default\n!\ninterface GigabitEthernet1/0...
โ <class 'ciscoconfparse2.ciscoconfparse2.CiscoConfParse'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2226, in __init__
self.commit()
โ โ <function CiscoConfParse.commit at 0x1068c6020>
โ <CiscoConfParse: 11 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_lin...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 2518, in commit
self.config_objs.commit()
โ โ <member 'config_objs' of 'CiscoConfParse' objects>
โ <CiscoConfParse: 11 lines / syntax: ios / comment delimiters: ['!'] / auto_indent_width: 1 / factory: True / ignore_blank_lin...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 955, in commit
self.data = self.bootstrap(debug=self.debug)
โ โ โ โ โ โ <member 'debug' of 'ConfigList' objects>
โ โ โ โ โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLi...
โ โ โ โ <function ConfigList.bootstrap at 0x1068e1e40>
โ โ โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLi...
โ โ [<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLine # 2 'spanning-tree portfast default'>, <IOSCfgLine # 3 ...
โ <ConfigList, syntax='ios', comment_delimiters=['!'], conf=[<IOSCfgLine # 0 ''>, <IOSCfgLine # 1 'hostname Switch'>, <IOSCfgLi...
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 1727, in bootstrap
obj = cfgobj_from_text(
โ <function cfgobj_from_text at 0x10680f1a0>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 447, in cfgobj_from_text
obj = config_line_factory(
โ <function config_line_factory at 0x106868ea0>
> File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/ciscoconfparse2.py", line 4028, in config_line_factory
basecfgline_subclass = _cls(
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
File "/usr/local/lib/python3.11/site-packages/ciscoconfparse2/models_cisco.py", line 2889, in __init__
super(IOSIntfGlobal).__init__(*args, **kwargs)
โ โ โ {'all_lines': ['', 'hostname Switch', 'spanning-tree portfast default', 'spanning-tree portfast bpduguard default', '!', 'int...
โ โ ()
โ <class 'ciscoconfparse2.models_cisco.IOSIntfGlobal'>
TypeError: super() takes no keyword arguments
$