annet 0.12.2__py3-none-any.whl → 0.12.4__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.

Potentially problematic release.


This version of annet might be problematic. Click here for more details.

@@ -96,7 +96,7 @@
96
96
  "Nokia.NS7750": " 7750",
97
97
  "Nokia.SR_1s": "SR-1s",
98
98
 
99
- "PC": "^(PC|pc|[Mm]ellanox SN|[Ee]dge-?[Cc]ore|[Mm]oxa)",
99
+ "PC": "^(PC|pc|[Mm]ellanox SN|[Ee]dge-?[Cc]ore|[Mm]oxa|[Aa]sterfusion CX)",
100
100
 
101
101
  "PC.Whitebox": "([Mm]ellanox SN|[Ee]dge-?[Cc]ore)",
102
102
  "PC.Whitebox.Mellanox": "[Mm]ellanox",
@@ -111,6 +111,10 @@
111
111
  "PC.Moxa": "[Mm]oxa",
112
112
  "PC.Moxa.NPort": " [Nn][Pp]ort",
113
113
  "PC.Moxa.NPort.6610": "6610",
114
+ "PC.Whitebox.Asterfusion": "[Aa]sterfusion",
115
+ "PC.Whitebox.Asterfusion.CX": " CX",
116
+ "PC.Whitebox.Asterfusion.CX.CX500": " CX5\\d\\d",
117
+ "PC.Whitebox.Asterfusion.CX.CX500.CX532P-N": " CX532P-N",
114
118
 
115
119
  "RouterOS": "^([Rr]outer[Oo][Ss]|[Mm]ikro[Tt]ik)",
116
120
 
@@ -133,5 +137,9 @@
133
137
 
134
138
  "Ribbon": "^Ribbon",
135
139
  "Ribbon.OPT": " OPT",
136
- "Ribbon.OPT.OPT9608": "9608D?"
140
+ "Ribbon.OPT.OPT9608": "9608D?",
141
+
142
+ "H3C": "^[Hh]3[Cc]",
143
+ "H3C.S12500": " S125\\d{2}",
144
+ "H3C.S12500.S12500R": " S12500R"
137
145
  }
annet/gen.py CHANGED
@@ -821,7 +821,6 @@ class Loader:
821
821
  self._no_empty_warning = no_empty_warning
822
822
  self._devices_map: Dict[int, Device] = {}
823
823
  self._gens: DeviceGenerators = DeviceGenerators()
824
- self._counter = itertools.count()
825
824
 
826
825
  self._preload()
827
826
 
@@ -835,7 +834,7 @@ class Loader:
835
834
  preload_extra_fields=True,
836
835
  )
837
836
  for device in devices:
838
- self._devices_map[next(self._counter)] = device
837
+ self._devices_map[device.id] = device
839
838
  self._gens.update(_old_resolve_gens(self._args, storage, devices))
840
839
  if not devices and not self._no_empty_warning:
841
840
  get_logger().error("No devices found for %s", self._args.query)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: annet
3
- Version: 0.12.2
3
+ Version: 0.12.4
4
4
  Summary: annet
5
5
  Home-page: https://github.com/annetutil/annet
6
6
  License: MIT
@@ -8,7 +8,7 @@ annet/deploy.py,sha256=B8E0P_VvCrS2URjFvgmUiIkHp95g7pAWfmT34igaDeo,18893
8
8
  annet/diff.py,sha256=zLcaCnb4lZRUb7frpH1CstQ3kacRcCblZs1uLG8J5lk,3391
9
9
  annet/executor.py,sha256=bw7COJNtssuxIqbQehlHYJnkdUeYvvL8WO5B-c67XE0,19040
10
10
  annet/filtering.py,sha256=F4ZKUCU3Yb1RlL2zKdyHtVUaWPzjWF4vWyMcdygKNYk,852
11
- annet/gen.py,sha256=3ywi-RoQXf55HuvhOvAA0dZonStxFkKoCOYjaNeo9N0,32552
11
+ annet/gen.py,sha256=HCd_9GukT5OT6qm6OIi9XZH6OuGMynABeaG81gU3edU,32500
12
12
  annet/hardware.py,sha256=HYPDfji_GdRn5S0_0fl4rvM7byOY9aHxG6VMAtsLaxE,1090
13
13
  annet/implicit.py,sha256=QigK4uoxvrFho2h9yFjOq1d9rLsC5xFlAU4bKkCuMWk,5139
14
14
  annet/lib.py,sha256=zQIfNBg7fAAk2BHbHAqy_McAiXhz0RqpBAcfdU-6pAA,3742
@@ -53,7 +53,7 @@ annet/annlib/types.py,sha256=VHU0CBADfYmO0xzB_c5f-mcuU3dUumuJczQnqGlib9M,852
53
53
  annet/annlib/netdev/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
54
  annet/annlib/netdev/db.py,sha256=fI_u5aya4l61mbYSjj4JwlVfi3s7obt2jqERSuXGRUI,1634
55
55
  annet/annlib/netdev/devdb/__init__.py,sha256=aKYjjLbJebdKBjnGDpVLQdSqrV2JL24spGm58tmMWVU,892
56
- annet/annlib/netdev/devdb/data/devdb.json,sha256=DJ0IsXqEvnuf27nL3qaQ6VseX_deSfROkOPijQjF86U,4733
56
+ annet/annlib/netdev/devdb/data/devdb.json,sha256=2zEvVnK0SGYgRlYM95OTJvacTLjEBO-L9_qc77GBYCE,5054
57
57
  annet/annlib/netdev/views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
58
  annet/annlib/netdev/views/dump.py,sha256=XJ6UO6sYSO5pIoe5R4eTQmKwx0_JJ71_h8QSYAURtyk,4184
59
59
  annet/annlib/netdev/views/hardware.py,sha256=_ZgaZgT6l4UEf94QaLtKIV31rRNJH4MPXh0-3xbesOc,3192
@@ -128,10 +128,10 @@ annet/rulebook/texts/routeros.rul,sha256=ipfxjj0mjFef6IsUlupqx4BY_Je_OUb8u_U1019
128
128
  annet_generators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
129
129
  annet_generators/example/__init__.py,sha256=zVd8_DrXuOASrNzg2Ab94rPyvJff83L-_HppDFxnUjM,228
130
130
  annet_generators/example/lldp.py,sha256=68CLrK7vxTQQy9XIBxtywuEdBNlIlfXGYj8_wYWs5UI,1146
131
- annet-0.12.2.dist-info/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
132
- annet-0.12.2.dist-info/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
133
- annet-0.12.2.dist-info/METADATA,sha256=4hCPO4oGou8j2lSYEFAuDODeQOfLpktiPIYH6rOT6dg,694
134
- annet-0.12.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
135
- annet-0.12.2.dist-info/entry_points.txt,sha256=yHimujIzR2bwNIbb--MTs_GpXiAve89Egpu2LlgTEkg,119
136
- annet-0.12.2.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
137
- annet-0.12.2.dist-info/RECORD,,
131
+ annet-0.12.4.dist-info/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
132
+ annet-0.12.4.dist-info/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
133
+ annet-0.12.4.dist-info/METADATA,sha256=bLsuZdXIPwgFBlHmOJ0WaA3wH2iXHmGtncAXlru-xwc,694
134
+ annet-0.12.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
135
+ annet-0.12.4.dist-info/entry_points.txt,sha256=yHimujIzR2bwNIbb--MTs_GpXiAve89Egpu2LlgTEkg,119
136
+ annet-0.12.4.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
137
+ annet-0.12.4.dist-info/RECORD,,
File without changes