annet 0.16.32__py3-none-any.whl → 0.16.33__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/common/status_client.py +1 -1
- annet/rpl_generators/cumulus_frr.py +9 -4
- {annet-0.16.32.dist-info → annet-0.16.33.dist-info}/METADATA +1 -1
- {annet-0.16.32.dist-info → annet-0.16.33.dist-info}/RECORD +9 -9
- {annet-0.16.32.dist-info → annet-0.16.33.dist-info}/AUTHORS +0 -0
- {annet-0.16.32.dist-info → annet-0.16.33.dist-info}/LICENSE +0 -0
- {annet-0.16.32.dist-info → annet-0.16.33.dist-info}/WHEEL +0 -0
- {annet-0.16.32.dist-info → annet-0.16.33.dist-info}/entry_points.txt +0 -0
- {annet-0.16.32.dist-info → annet-0.16.33.dist-info}/top_level.txt +0 -0
|
@@ -100,7 +100,7 @@ class CumulusPolicyGenerator(ABC):
|
|
|
100
100
|
ip_type,
|
|
101
101
|
"prefix-list",
|
|
102
102
|
name,
|
|
103
|
-
f"seq {i *
|
|
103
|
+
f"seq {i * 5 + 5}",
|
|
104
104
|
"permit", f"{addr_mask.ip}/{addr_mask.network.prefixlen}",
|
|
105
105
|
) + (
|
|
106
106
|
("ge", str(match.greater_equal)) if match.greater_equal is not None else ()
|
|
@@ -151,13 +151,14 @@ class CumulusPolicyGenerator(ABC):
|
|
|
151
151
|
return get_used_united_community_lists(communities=communities.values(), policies=policies)
|
|
152
152
|
|
|
153
153
|
def _cumulus_community(
|
|
154
|
-
self, name: str, cmd: str, member: str, use_regex: bool,
|
|
154
|
+
self, name: str, cmd: str, member: str, use_regex: bool, seq: int,
|
|
155
155
|
) -> Iterable[Sequence[str]]:
|
|
156
156
|
if use_regex:
|
|
157
157
|
yield (
|
|
158
158
|
cmd,
|
|
159
159
|
"expanded",
|
|
160
160
|
name,
|
|
161
|
+
f"seq {seq}",
|
|
161
162
|
"permit",
|
|
162
163
|
member,
|
|
163
164
|
)
|
|
@@ -166,6 +167,7 @@ class CumulusPolicyGenerator(ABC):
|
|
|
166
167
|
cmd,
|
|
167
168
|
"standard",
|
|
168
169
|
name,
|
|
170
|
+
f"seq {seq}",
|
|
169
171
|
"permit",
|
|
170
172
|
member,
|
|
171
173
|
)
|
|
@@ -182,6 +184,7 @@ class CumulusPolicyGenerator(ABC):
|
|
|
182
184
|
return
|
|
183
185
|
for community_list_union in community_unions:
|
|
184
186
|
name = mangle_united_community_list_name([c.name for c in community_list_union])
|
|
187
|
+
comm_number = 0
|
|
185
188
|
|
|
186
189
|
for clist in community_list_union:
|
|
187
190
|
if clist.type is CommunityType.BASIC:
|
|
@@ -207,13 +210,15 @@ class CumulusPolicyGenerator(ABC):
|
|
|
207
210
|
else:
|
|
208
211
|
member = " ".join(f"{member_prefix}{m}" for m in clist.members)
|
|
209
212
|
yield from self._cumulus_community(
|
|
210
|
-
name=name, cmd=cmd, member=member, use_regex=clist.use_regex,
|
|
213
|
+
name=name, cmd=cmd, member=member, use_regex=clist.use_regex, seq=(comm_number + 1) * 10,
|
|
211
214
|
)
|
|
212
215
|
else:
|
|
213
|
-
for member_value in clist.members:
|
|
216
|
+
for comm_number, member_value in enumerate(clist.members, start=comm_number):
|
|
214
217
|
yield from self._cumulus_community(
|
|
215
218
|
name=name, cmd=cmd, member=member_prefix + member_value, use_regex=clist.use_regex,
|
|
219
|
+
seq=(comm_number + 1) * 10,
|
|
216
220
|
)
|
|
221
|
+
comm_number += 1
|
|
217
222
|
yield "!"
|
|
218
223
|
|
|
219
224
|
def _get_match_community_names(self, condition: SingleCondition[Sequence[str]]) -> Sequence[str]:
|
|
@@ -35,7 +35,7 @@ annet/adapters/netbox/common/client.py,sha256=PaxHG4W9H8_uunIwMBNYkLq4eQJYoO6p6g
|
|
|
35
35
|
annet/adapters/netbox/common/manufacturer.py,sha256=LAPT6OlV_ew96GhtwNrCpeiT0IGrg2_9__MMdZk431U,1733
|
|
36
36
|
annet/adapters/netbox/common/models.py,sha256=Xq6Dc3kY9_QyvS9DiKEq1AxjTxiF4qEKhs1EMtBw-k4,7384
|
|
37
37
|
annet/adapters/netbox/common/query.py,sha256=ziUFM7cUEbEIf3k1szTll4aO-OCUa-2Ogxbebi7Tegs,646
|
|
38
|
-
annet/adapters/netbox/common/status_client.py,sha256=
|
|
38
|
+
annet/adapters/netbox/common/status_client.py,sha256=XXx0glomaBaglmkUEy6YtFOxQQkHb59CDA0h1I-IhxM,592
|
|
39
39
|
annet/adapters/netbox/common/storage_opts.py,sha256=5tt6wxUUJTIzNbOVXMnYBwZedNAIqYlve3YWl6GdbZM,1197
|
|
40
40
|
annet/adapters/netbox/v24/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
41
|
annet/adapters/netbox/v24/storage.py,sha256=THI592VLx3ehixsPZQ1Ko3mYIAZQbnDY-toIziqBbL8,6005
|
|
@@ -101,7 +101,7 @@ annet/rpl/statement_builder.py,sha256=sVGOYsCV0s_SFQUy2WtUyQqKy5H4MOfmRCJWGj-UOJ
|
|
|
101
101
|
annet/rpl_generators/__init__.py,sha256=ZLWs-flcpyIbdhxSDfNt-ORDrLe8ins25sWdXTWeUoA,748
|
|
102
102
|
annet/rpl_generators/aspath.py,sha256=kZakwPLfGGiXu9fC6I1z-pvy7Fe-4dy93_-lYcx39_4,2038
|
|
103
103
|
annet/rpl_generators/community.py,sha256=SWpaOvoQUNISuRm41-IvGPFmntvgFv9ee4zegsMyeo0,11496
|
|
104
|
-
annet/rpl_generators/cumulus_frr.py,sha256=
|
|
104
|
+
annet/rpl_generators/cumulus_frr.py,sha256=F-LRT-UPnztUqinp3KYKqh796L9dqkzPKBUxMkiFjF8,21111
|
|
105
105
|
annet/rpl_generators/entities.py,sha256=DIpgAQ8Tslo2hq6iFBaYkJX12BFBiccN8GOaRVxR1Uk,1985
|
|
106
106
|
annet/rpl_generators/execute.py,sha256=wS6e6fwcPWywsHB0gBMqZ17eF0s4YOBgDgwPB_cr5Rw,431
|
|
107
107
|
annet/rpl_generators/policy.py,sha256=NeqB0reRN_KuY8LYkeGT3dRPe2HFDT9RfmVy5fcA3zw,32570
|
|
@@ -175,10 +175,10 @@ annet_generators/rpl_example/generator.py,sha256=zndIGfV4ZlTxPgAGYs7bMQvTc_tYScO
|
|
|
175
175
|
annet_generators/rpl_example/items.py,sha256=Ez1RF5YhcXNCusBmeApIjRL3rBlMazNZd29Gpw1_IsA,766
|
|
176
176
|
annet_generators/rpl_example/mesh.py,sha256=z_WgfDZZ4xnyh3cSf75igyH09hGvtexEVwy1gCD_DzA,288
|
|
177
177
|
annet_generators/rpl_example/route_policy.py,sha256=z6nPb0VDeQtKD1NIg9sFvmUxBD5tVs2frfNIuKdM-5c,2318
|
|
178
|
-
annet-0.16.
|
|
179
|
-
annet-0.16.
|
|
180
|
-
annet-0.16.
|
|
181
|
-
annet-0.16.
|
|
182
|
-
annet-0.16.
|
|
183
|
-
annet-0.16.
|
|
184
|
-
annet-0.16.
|
|
178
|
+
annet-0.16.33.dist-info/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
|
|
179
|
+
annet-0.16.33.dist-info/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
|
|
180
|
+
annet-0.16.33.dist-info/METADATA,sha256=4FDrHTUVwwM6GIzoAZ96e3XHrSiSHvSShAY7v7jw4qg,854
|
|
181
|
+
annet-0.16.33.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
182
|
+
annet-0.16.33.dist-info/entry_points.txt,sha256=5lIaDGlGi3l6QQ2ry2jZaqViP5Lvt8AmsegdD0Uznck,192
|
|
183
|
+
annet-0.16.33.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
|
|
184
|
+
annet-0.16.33.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|