Open boxs3lli opened 8 years ago
Probably the way to do this is to add a parameter to the class like 'global_debug'. If you pass in this parameter then debugging would be enabled. You could then toggle this by changing your device inventory (i.e. by setting debug to true).
Come to think of it I already have the 'verbose' flag which really does nothing. I could re-wire that for that purpose.
if debug or self.verbose:
do_something
vi /usr/lib/python2.7/site-packages/netmiko/base_connection.py :%s/debug = False/debug = True/g