Link Search Menu Expand Document (external link)


Terminal_Task class Options


task_name

InputTypeDescription
task_nameStringThe name of the task (which will be displayed when listing tasks)

Alternative to set the task name as a class Parameter, is to provid it as a CLI argument

python3 <your script>.py --name "Test task 2"

NOTE The cli provided task name takes effect if both ways are used together.

from FlexibleNetwork.Flexible_Network import Terminal_Task
from FlexibleNetwork.Vendors import Cisco

task = Terminal_Task(task_log_format="txt")




Terminal_Task class Options


task_log_formate

InputTypeDescriptionOptionsDefault
task_log_formateStringTask log file formatmarkdown, txtmarkdown

NOTE: “Markdown” format provides a pretty looking for Task log, but it may be put some extra load for the Terminal app to display it, if log looking doesn’t matter to you, you can use the “txt” log format.

from FlexibleNetwork.Flexible_Network import Terminal_Task
from FlexibleNetwork.Vendors import Cisco

task = Terminal_Task(task_log_format="txt")