annet 2.5.0__py3-none-any.whl → 2.5.1__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.
- annet/adapters/netbox/provider.py +2 -0
- annet/rpl_generators/cumulus_frr.py +5 -5
- {annet-2.5.0.dist-info → annet-2.5.1.dist-info}/METADATA +1 -1
- {annet-2.5.0.dist-info → annet-2.5.1.dist-info}/RECORD +9 -9
- {annet-2.5.0.dist-info → annet-2.5.1.dist-info}/WHEEL +1 -1
- {annet-2.5.0.dist-info → annet-2.5.1.dist-info}/entry_points.txt +0 -0
- {annet-2.5.0.dist-info → annet-2.5.1.dist-info}/licenses/AUTHORS +0 -0
- {annet-2.5.0.dist-info → annet-2.5.1.dist-info}/licenses/LICENSE +0 -0
- {annet-2.5.0.dist-info → annet-2.5.1.dist-info}/top_level.txt +0 -0
|
@@ -16,6 +16,7 @@ from .v42.storage import NetboxStorageV42
|
|
|
16
16
|
def storage_factory(opts: NetboxStorageOpts) -> Storage:
|
|
17
17
|
client = NetboxStatusClient(opts.url, opts.token, opts.insecure)
|
|
18
18
|
version_class_map = {
|
|
19
|
+
"3.4": NetboxStorageV37,
|
|
19
20
|
"3.7": NetboxStorageV37,
|
|
20
21
|
"4.0": NetboxStorageV41,
|
|
21
22
|
"4.1": NetboxStorageV41,
|
|
@@ -37,6 +38,7 @@ def storage_factory(opts: NetboxStorageOpts) -> Storage:
|
|
|
37
38
|
raise ValueError(f"Unsupported version: {status.netbox_version}")
|
|
38
39
|
except ClientLibraryError:
|
|
39
40
|
raise ValueError(f"Connection error: Unable to reach Netbox at URL: {opts.url}")
|
|
41
|
+
raise Exception(f"Unsupported version: {status.netbox_version}")
|
|
40
42
|
|
|
41
43
|
|
|
42
44
|
class NetboxProvider(StorageProvider, AdapterWithName, AdapterWithConfig):
|
|
@@ -353,18 +353,18 @@ class CumulusPolicyGenerator(ABC):
|
|
|
353
353
|
) -> Iterator[Sequence[str]]:
|
|
354
354
|
if action.value.prepend:
|
|
355
355
|
for path_item in action.value.prepend:
|
|
356
|
-
yield "set as-path prepend", path_item
|
|
356
|
+
yield "set", "as-path prepend", path_item
|
|
357
357
|
if action.value.expand:
|
|
358
358
|
raise NotImplementedError("asp_path.expand is not supported for Cumulus")
|
|
359
359
|
if action.value.delete:
|
|
360
360
|
for path_item in action.value.delete:
|
|
361
|
-
yield "set as-path exclude", path_item
|
|
361
|
+
yield "set", "as-path exclude", path_item
|
|
362
362
|
if action.value.set is not None:
|
|
363
|
-
yield "set as-path exclude all"
|
|
363
|
+
yield "set", "as-path exclude", "all"
|
|
364
364
|
for path_item in action.value.set:
|
|
365
|
-
yield "set as-path prepend", path_item
|
|
365
|
+
yield "set", "as-path prepend", path_item
|
|
366
366
|
if action.value.expand_last_as:
|
|
367
|
-
yield "set as-path prepend last-as", action.value.expand_last_as
|
|
367
|
+
yield "set", "as-path prepend last-as", action.value.expand_last_as
|
|
368
368
|
|
|
369
369
|
def _cumulus_policy_then(
|
|
370
370
|
self,
|
|
@@ -30,7 +30,7 @@ annet/adapters/fetchers/stub/fetcher.py,sha256=FzpkIzPJBQVuNNSdXKoGzkALmIGMgo2gm
|
|
|
30
30
|
annet/adapters/file/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
31
|
annet/adapters/file/provider.py,sha256=KyHuA5w9E4T3Lxeko8b5M7jRmu7yhTJVLqLkas4ue1A,6654
|
|
32
32
|
annet/adapters/netbox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
|
-
annet/adapters/netbox/provider.py,sha256=
|
|
33
|
+
annet/adapters/netbox/provider.py,sha256=SrxW_uBLvMTqtRiYXreL6RrZK4MpxVguF2ITnYOnVHU,2226
|
|
34
34
|
annet/adapters/netbox/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
35
|
annet/adapters/netbox/common/adapter.py,sha256=-YcO3371D8hupNXKf5f4-FdFSjTto-7VKDvz29Gid38,2016
|
|
36
36
|
annet/adapters/netbox/common/client.py,sha256=PaxHG4W9H8_uunIwMBNYkLq4eQJYoO6p6gY-ciQs7Nc,2563
|
|
@@ -112,7 +112,7 @@ annet/rpl/statement_builder.py,sha256=qKhLS34lygbhtbEIY-6jzs0Aisc6qmNc_iyk9iKPyH
|
|
|
112
112
|
annet/rpl_generators/__init__.py,sha256=V4rAZlBaOUSjeQ5eCNmWeD7BSJLIwy0lKU_01grebpc,832
|
|
113
113
|
annet/rpl_generators/aspath.py,sha256=kZakwPLfGGiXu9fC6I1z-pvy7Fe-4dy93_-lYcx39_4,2038
|
|
114
114
|
annet/rpl_generators/community.py,sha256=SWpaOvoQUNISuRm41-IvGPFmntvgFv9ee4zegsMyeo0,11496
|
|
115
|
-
annet/rpl_generators/cumulus_frr.py,sha256=
|
|
115
|
+
annet/rpl_generators/cumulus_frr.py,sha256=eABVCpn4ru_BFQJDcPZZEi1EL1cBwfNhtC1mDmC6BwA,21548
|
|
116
116
|
annet/rpl_generators/entities.py,sha256=uO78iG2zHAGra5DqzpfnBgoc6slHEc6wDLvlnoySvJc,3750
|
|
117
117
|
annet/rpl_generators/execute.py,sha256=wS6e6fwcPWywsHB0gBMqZ17eF0s4YOBgDgwPB_cr5Rw,431
|
|
118
118
|
annet/rpl_generators/policy.py,sha256=j_2EtAsaxldhZZT4kRXKZacuAsGnHr3JSc2BMxr_Pow,37174
|
|
@@ -177,8 +177,8 @@ annet/rulebook/texts/ribbon.deploy,sha256=hCq2XeAcwaYanyQ8lTdnez6Pgq-gRqpNuR8dAl
|
|
|
177
177
|
annet/rulebook/texts/ribbon.rul,sha256=609LyLTDCtXPVQNAzqS-VEyCpW3byHP8TCMJLFMn5cc,2108
|
|
178
178
|
annet/rulebook/texts/routeros.order,sha256=M71uy_hf0KAjLNS3zZY3uih4m2xLUcu26FEoVVjC6k0,905
|
|
179
179
|
annet/rulebook/texts/routeros.rul,sha256=ipfxjj0mjFef6IsUlupqx4BY_Je_OUb8u_U1019O1DE,1203
|
|
180
|
-
annet-2.5.
|
|
181
|
-
annet-2.5.
|
|
180
|
+
annet-2.5.1.dist-info/licenses/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
|
|
181
|
+
annet-2.5.1.dist-info/licenses/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
|
|
182
182
|
annet_generators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
183
183
|
annet_generators/example/__init__.py,sha256=1z030I00c9KeqW0ntkT1IRLYKD5LZAHYjiNHrOLen1Q,221
|
|
184
184
|
annet_generators/example/lldp.py,sha256=24bGvShxbio-JxUdaehyPRu31LhH9YwSwFDrWVRn6yo,2100
|
|
@@ -190,8 +190,8 @@ annet_generators/rpl_example/generator.py,sha256=zndIGfV4ZlTxPgAGYs7bMQvTc_tYScO
|
|
|
190
190
|
annet_generators/rpl_example/items.py,sha256=d99HSXDHFjZq511EvGhIqRTWK3F4ZsCWfdUqFYQcyhE,772
|
|
191
191
|
annet_generators/rpl_example/mesh.py,sha256=z_WgfDZZ4xnyh3cSf75igyH09hGvtexEVwy1gCD_DzA,288
|
|
192
192
|
annet_generators/rpl_example/route_policy.py,sha256=z6nPb0VDeQtKD1NIg9sFvmUxBD5tVs2frfNIuKdM-5c,2318
|
|
193
|
-
annet-2.5.
|
|
194
|
-
annet-2.5.
|
|
195
|
-
annet-2.5.
|
|
196
|
-
annet-2.5.
|
|
197
|
-
annet-2.5.
|
|
193
|
+
annet-2.5.1.dist-info/METADATA,sha256=yV5XEXm3TVL8ONqDFzOU1Gfw1aKGTDkKLAaZhtWg5Wc,815
|
|
194
|
+
annet-2.5.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
195
|
+
annet-2.5.1.dist-info/entry_points.txt,sha256=5lIaDGlGi3l6QQ2ry2jZaqViP5Lvt8AmsegdD0Uznck,192
|
|
196
|
+
annet-2.5.1.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
|
|
197
|
+
annet-2.5.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|