nornir-collection 0.0.5__py3-none-any.whl → 0.0.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,7 @@ The functions are ordered as followed:
7
7
  """
8
8
 
9
9
  import time
10
+ import sys
10
11
  from nornir.core import Nornir, Task
11
12
  from nornir_collection.utils import (
12
13
  print_task_title,
@@ -86,6 +87,16 @@ def _nc_commit_confirm_testing(nr: Task) -> bool:
86
87
 
87
88
  print_task_title("Run Nornir TestsProcessor during NETCONF commit-confirm timeout")
88
89
 
90
+ # Sleep for some seconds to allow the device to get into a stable state before the testing
91
+ # e.g. Spanning-Tree convergence, OSPF adjacencies, etc.
92
+ # Print a overall TestsProcessor result
93
+ task_text = "PYTHON sleep some seconds before run TestsProcessor"
94
+ print(task_name(text=task_text))
95
+ print(task_result(text=task_text, changed=False, level_name="INFO"))
96
+ print(f"'{task_text}' -> PythonResponse <Success: True>")
97
+ print("-> Sleep 15s seconds before run the Nornir TestsProcessor ...")
98
+ sys.sleep(15)
99
+
89
100
  # Run Nornir TestsProcessor for Unit, Integration, and System tests. All tests files with the inventory
90
101
  # key starting with the prefix "cfgtp_{name}_" and are loaded from the inventory.
91
102
  for name in ["Unit", "Integration", "System"]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nornir-collection
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: Nornir-Collection contains network automation functions and complete IaC workflows with Nornir and other python libraries. It contains Nornir tasks and general functions in Nornir style.
5
5
  Author: Willi Kubny
6
6
  Author-email: willi.kubny@gmail.ch
@@ -15,7 +15,7 @@ nornir_collection/cisco/configuration_management/cli/config_workflow.py,sha256=G
15
15
  nornir_collection/cisco/configuration_management/cli/show_tasks.py,sha256=w9p2Iks33-pE4-YztH6vj-eI0MuPI7YD6gZhRcpQF7M,27971
16
16
  nornir_collection/cisco/configuration_management/netconf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  nornir_collection/cisco/configuration_management/netconf/config_tasks.py,sha256=Sig1FNmjcXXWK0zIUp_-sCxZzYjnYjR_HuYguLlIlsA,22120
18
- nornir_collection/cisco/configuration_management/netconf/config_workflow.py,sha256=x1eWzO-WpNi0rAvdngyZfAR4OV3a6Rw7NAWWaU1xm2Y,14146
18
+ nornir_collection/cisco/configuration_management/netconf/config_workflow.py,sha256=uVgVTvNhhvPVlZj9IqM5ePTl4QPq5R-fHDO1bq5y8zE,14693
19
19
  nornir_collection/cisco/configuration_management/netconf/nr_cfg_iosxe_netconf.py,sha256=ciG2TkOC1qEtxOIKX0CjAOV3aAt3JOR7VaDvstDDy_s,8614
20
20
  nornir_collection/cisco/configuration_management/netconf/ops_tasks.py,sha256=cj7cpJNvY2bytv9VOqwg_7qOekL-cIL0EjML2KT4TQM,10659
21
21
  nornir_collection/cisco/configuration_management/restconf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -52,8 +52,8 @@ nornir_collection/nornir_plugins/inventory/staggered_yaml.py,sha256=nBvUFq7U5zVT
52
52
  nornir_collection/nornir_plugins/inventory/utils.py,sha256=mxIlKK-4PHqCnFKn7Oozu1RW_JB5z1TgEYc-ave70nE,11822
53
53
  nornir_collection/purestorage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
54
  nornir_collection/purestorage/utils.py,sha256=TqU2sKz0ENnmSDEBcSvXPnVkI1DVHOogI68D7l32g7I,1730
55
- nornir_collection-0.0.5.dist-info/LICENSE,sha256=bOPVh1OVNwz2tCjkLaChWT6AoXdtqye3aua5l0tgYJo,1068
56
- nornir_collection-0.0.5.dist-info/METADATA,sha256=MAQXJykEaNtNv2VJaQzkEyFPkt5IaXerB8QtQwr5yoY,7137
57
- nornir_collection-0.0.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
58
- nornir_collection-0.0.5.dist-info/top_level.txt,sha256=OyCzPWABf-D0AOHm9ihrwdk5eq200BnKna6gIDspwsE,18
59
- nornir_collection-0.0.5.dist-info/RECORD,,
55
+ nornir_collection-0.0.6.dist-info/LICENSE,sha256=bOPVh1OVNwz2tCjkLaChWT6AoXdtqye3aua5l0tgYJo,1068
56
+ nornir_collection-0.0.6.dist-info/METADATA,sha256=dUUN9CQyT4fkU7RxhTJTBt7jVJ1KVqqM8EaeLd4fchY,7137
57
+ nornir_collection-0.0.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
58
+ nornir_collection-0.0.6.dist-info/top_level.txt,sha256=OyCzPWABf-D0AOHm9ihrwdk5eq200BnKna6gIDspwsE,18
59
+ nornir_collection-0.0.6.dist-info/RECORD,,