nornir-collection 0.0.3__py3-none-any.whl → 0.0.5__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.
@@ -69,14 +69,14 @@ def main(nr_config: str, args: argparse.Namespace) -> None:
69
69
  add_netbox_data = {"load_virtual_chassis_data": True, "load_interface_data": True, "load_vlan_data": True}
70
70
  nr = init_nornir(config_file=nr_config, args=args, add_netbox_data=add_netbox_data)
71
71
 
72
- # Filter the Nornir inventory again only with devices that have the tag slug 'cfg-mgmt' and compare the
72
+ # Filter the Nornir inventory again only with devices that have the tag name 'CFG-MGMT' and compare the
73
73
  # filtered inventory with the original inventory to prevent the script from running on devices that are
74
74
  # not intended for config management
75
75
  print_task_title(title="Verify Nornir inventory filter for CFG-MGMT")
76
76
  task_text = "NORNIR verify inventory filter for CFG-MGMT"
77
77
  print(task_name(text=task_text))
78
- # Filter the Nornir inventory with devices that have the tag 'cfg-mgmt'
79
- nr_cfg_mgmt = nr.filter(F(tags__contains="cfg-mgmt"))
78
+ # Filter the Nornir inventory with devices that have the tag 'CFG-MGMT'
79
+ nr_cfg_mgmt = nr.filter(F(tags__contains="CFG-MGMT"))
80
80
  # Exit the script if the filtered inventory does not match the original inventory
81
81
  if len(nr.inventory.hosts) != len(nr_cfg_mgmt.inventory.hosts):
82
82
  print(task_error(text=task_text, changed=False))
@@ -209,7 +209,7 @@ class DSCNetBoxInventory:
209
209
  serialized_device["data"]["virtual_chassis"]["master"]["serial"] = master_serial
210
210
 
211
211
  # Flatten the list of Tags which contains only the slug of each NetBox tag
212
- device["tags"] = [tag["slug"] for tag in device["tags"]]
212
+ device["tags"] = [tag["name"] for tag in device["tags"]]
213
213
 
214
214
  # Extract the device connection options
215
215
  # Add Nornir connection options from the device context data
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nornir-collection
3
- Version: 0.0.3
3
+ Version: 0.0.5
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
@@ -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=x1eWzO-WpNi0rAvdngyZfAR4OV3a6Rw7NAWWaU1xm2Y,14146
19
- nornir_collection/cisco/configuration_management/netconf/nr_cfg_iosxe_netconf.py,sha256=G20TnpJUdW7swb5fiSKdRgdZu6EfjWwDFqxc9ajzclg,8614
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
22
22
  nornir_collection/cisco/configuration_management/restconf/cisco_rpc.py,sha256=tIccCcWegIuTRREz9wd47is4vP0bvvjH2ljB4GaOUKY,18569
@@ -47,13 +47,13 @@ nornir_collection/netbox/utils.py,sha256=hrpb-RTHGcJVCBGy38szwZDnXhsD9HJOSWMdUT9
47
47
  nornir_collection/netbox/verify_device_primary_ip.py,sha256=6UCdZaZxhV4v8KqpjSpE9c7jaxIAF2krrknrrRj1AvM,8690
48
48
  nornir_collection/nornir_plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  nornir_collection/nornir_plugins/inventory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
50
- nornir_collection/nornir_plugins/inventory/netbox.py,sha256=loKKu3sxBy_WChVADhX_9D3Dfvg2m0ov9K4iyWE0B2g,8685
50
+ nornir_collection/nornir_plugins/inventory/netbox.py,sha256=-L00zUBNkbSAkWzjKQE1drOkh5QQojZqZNTcGSJ9PNQ,8685
51
51
  nornir_collection/nornir_plugins/inventory/staggered_yaml.py,sha256=nBvUFq7U5zVTkwer_xQNpMqC7go8KnFwshgQxmqlaFc,5612
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.3.dist-info/LICENSE,sha256=bOPVh1OVNwz2tCjkLaChWT6AoXdtqye3aua5l0tgYJo,1068
56
- nornir_collection-0.0.3.dist-info/METADATA,sha256=otHwdca5grJ52laoiZHhVHc6TaJs_yn5gjPrRIFMplo,7137
57
- nornir_collection-0.0.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
58
- nornir_collection-0.0.3.dist-info/top_level.txt,sha256=OyCzPWABf-D0AOHm9ihrwdk5eq200BnKna6gIDspwsE,18
59
- nornir_collection-0.0.3.dist-info/RECORD,,
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,,