3.5. common module

nettoolkit.capture_it.common.exec_log(msg, to_file, display=False)[source]

print and write execution log to a file.

Parameters:
  • msg (str) – log message

  • to_file (str) – filename with full path to where message to be added

  • display (bool, optional) – display message on screen or not. Defaults to False.

nettoolkit.capture_it.common.juniper_add_no_more(cmd)[source]

returns updated juniper command with proper full | no-more statement if missing or trunkated found.

Parameters:

cmd (str) – juniper show command

Returns:

updated command with | no-more

Return type:

str