nornir-collection 0.0.9__py3-none-any.whl → 0.0.10__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.
@@ -95,8 +95,8 @@ def main(nr_config: str, args: argparse.Namespace) -> None:
95
95
 
96
96
  #### Run Nornir Tasks to Verify the config State ########################################################
97
97
 
98
- # First do a pre-config check to ensure the current config is in a clean state
99
- if not args.rebuild and not args.skip_pre_check:
98
+ # If the pre-check arg is True, do a pre-config check to ensure the current config is in a clean state
99
+ if not args.rebuild and args.pre_check:
100
100
  cfg_status = nr_pre_config_check(nr=nr)
101
101
  # Exit the script if the config status is not clean
102
102
  if not cfg_status:
@@ -370,7 +370,7 @@ def init_args_for_netconf_cm() -> argparse.Namespace:
370
370
 
371
371
  # Add the optional rebuild argument
372
372
  argparser.add_argument(
373
- "--skip-pre-check",
373
+ "--pre-check",
374
374
  action="store_true",
375
375
  default=False,
376
376
  help="disable the pre-configuration check (default: False)",
@@ -397,10 +397,10 @@ def init_args_for_netconf_cm() -> argparse.Namespace:
397
397
 
398
398
  print("-> Configuration-MGMT arguments:")
399
399
  print(f" - Run on the '{nb_instance}' NetBox instance and Nornir config '{nr_config}'")
400
- if args.skip_pre_check:
401
- print(" - Skip the pre-configuration check (diff running-config/golden-config)")
400
+ if args.pre_check:
401
+ print(" - Pre-configuration check is enabled (diff running-config/golden-config)")
402
402
  else:
403
- print(" - Perform the pre-configuration check (diff running-config/golden-config)")
403
+ print(" - Pre-configuration check is disabled (diff running-config/golden-config)")
404
404
  if args.dryrun:
405
405
  print(" - NETCONF dry-run is enabled")
406
406
  else:
@@ -376,7 +376,7 @@ def nr_filter_by_role_and_tag(
376
376
  text="ALERT: NO HOST WITH ROLE AND/OR TAGS IN NORNIR INVENTORY",
377
377
  msg=[
378
378
  "-> Analyse the Nornir inventory and filter for a role and/or tags assigned to hosts",
379
- f"-> {provided_filters}",
379
+ f"{provided_filters}",
380
380
  ],
381
381
  )
382
382
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nornir-collection
3
- Version: 0.0.9
3
+ Version: 0.0.10
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
@@ -1,6 +1,6 @@
1
1
  nornir_collection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  nornir_collection/git.py,sha256=HSNFc090QL2y_ISP1Jw8pUOWMG2khxDncIHZj7oDvZc,8734
3
- nornir_collection/utils.py,sha256=PzHHY45KtOu2k1jAXFp1DmLFTx7cHriV3TF7NrodW6A,26718
3
+ nornir_collection/utils.py,sha256=3JSaJltqNv_rhJD35u6jKuekY0oiRYthTF5oGNcK9n4,26715
4
4
  nornir_collection/batfish/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  nornir_collection/batfish/assert_config.py,sha256=X4YFXzblxu74PwNERvSudOzh8K2Ac6hO0BMyGaKwTts,15129
6
6
  nornir_collection/batfish/utils.py,sha256=KzhXsnk0LQWNP6-8oHykVIlWIT0ZDLD-CSKL0B90ytU,4478
@@ -8,7 +8,7 @@ nornir_collection/cisco/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
8
8
  nornir_collection/cisco/configuration_management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  nornir_collection/cisco/configuration_management/processor.py,sha256=KjhilyyDDiYL7wFemGEWSP16OLeM4dENmrtb20LRssY,6443
10
10
  nornir_collection/cisco/configuration_management/pyats.py,sha256=j9XzG3ttURR0wtu2Se9QQEpG5o2kq9mqDkReNCdWKpk,8932
11
- nornir_collection/cisco/configuration_management/utils.py,sha256=0o1ZktYNIrmBpQDJ9o7f2j4sYmK__LDBb0JC4cR5iJo,18641
11
+ nornir_collection/cisco/configuration_management/utils.py,sha256=AG2b_FVYaEYkz51qYLiOgRI6hDmZOrkPwz51Yc-xP0g,18633
12
12
  nornir_collection/cisco/configuration_management/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  nornir_collection/cisco/configuration_management/cli/config_tasks.py,sha256=mWXysgUm6ymNLQjomB1T05QT9A-fdV1aEKFzzDrfCUw,22147
14
14
  nornir_collection/cisco/configuration_management/cli/config_workflow.py,sha256=GIka5SPLZ7M2zCFv8Jadl73QC-InnGopzI8xQt36MfM,3459
@@ -16,7 +16,7 @@ nornir_collection/cisco/configuration_management/cli/show_tasks.py,sha256=w9p2Ik
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
18
  nornir_collection/cisco/configuration_management/netconf/config_workflow.py,sha256=qxB4DolQL2WJO9JRATzANhIwYPNuKyuN0hI9-ABzJq8,14557
19
- nornir_collection/cisco/configuration_management/netconf/nr_cfg_iosxe_netconf.py,sha256=ciG2TkOC1qEtxOIKX0CjAOV3aAt3JOR7VaDvstDDy_s,8614
19
+ nornir_collection/cisco/configuration_management/netconf/nr_cfg_iosxe_netconf.py,sha256=qKb1EeiYbCO96AE6ETaNxRrM2nCfsbX00nwcPK9ZSkc,8629
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
22
22
  nornir_collection/cisco/configuration_management/restconf/cisco_rpc.py,sha256=tIccCcWegIuTRREz9wd47is4vP0bvvjH2ljB4GaOUKY,18569
@@ -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.9.dist-info/LICENSE,sha256=bOPVh1OVNwz2tCjkLaChWT6AoXdtqye3aua5l0tgYJo,1068
56
- nornir_collection-0.0.9.dist-info/METADATA,sha256=3i-2daEZ2nlcCFvtLqTjzVyUL7M0Dv0gdzY1XuvpVCE,7137
57
- nornir_collection-0.0.9.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
58
- nornir_collection-0.0.9.dist-info/top_level.txt,sha256=OyCzPWABf-D0AOHm9ihrwdk5eq200BnKna6gIDspwsE,18
59
- nornir_collection-0.0.9.dist-info/RECORD,,
55
+ nornir_collection-0.0.10.dist-info/LICENSE,sha256=bOPVh1OVNwz2tCjkLaChWT6AoXdtqye3aua5l0tgYJo,1068
56
+ nornir_collection-0.0.10.dist-info/METADATA,sha256=m3_nrifESsxEB3tfnM0KVzdxuEBuNX8cSgdrtaP0DCM,7138
57
+ nornir_collection-0.0.10.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
58
+ nornir_collection-0.0.10.dist-info/top_level.txt,sha256=OyCzPWABf-D0AOHm9ihrwdk5eq200BnKna6gIDspwsE,18
59
+ nornir_collection-0.0.10.dist-info/RECORD,,