annet 0.12.9__py3-none-any.whl → 0.12.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.
Potentially problematic release.
This version of annet might be problematic. Click here for more details.
- annet/api/__init__.py +10 -9
- {annet-0.12.9.dist-info → annet-0.12.10.dist-info}/METADATA +1 -1
- {annet-0.12.9.dist-info → annet-0.12.10.dist-info}/RECORD +8 -8
- {annet-0.12.9.dist-info → annet-0.12.10.dist-info}/AUTHORS +0 -0
- {annet-0.12.9.dist-info → annet-0.12.10.dist-info}/LICENSE +0 -0
- {annet-0.12.9.dist-info → annet-0.12.10.dist-info}/WHEEL +0 -0
- {annet-0.12.9.dist-info → annet-0.12.10.dist-info}/entry_points.txt +0 -0
- {annet-0.12.9.dist-info → annet-0.12.10.dist-info}/top_level.txt +0 -0
annet/api/__init__.py
CHANGED
|
@@ -347,21 +347,22 @@ def diff(
|
|
|
347
347
|
acl_rules = res.get_acl_rules(args.acl_safe)
|
|
348
348
|
new_files = res.get_new_files(args.acl_safe)
|
|
349
349
|
new_json_fragment_files = res.get_new_file_fragments()
|
|
350
|
+
|
|
351
|
+
pc_diff_files = []
|
|
350
352
|
if res.old_files or new_files:
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
diff_files=list(_json_fragment_diff(device.hostname, res.old_json_fragment_files, new_json_fragment_files)),
|
|
359
|
-
)
|
|
353
|
+
pc_diff_files.extend(_pc_diff(device.hostname, res.old_files, new_files))
|
|
354
|
+
if res.old_json_fragment_files or new_json_fragment_files:
|
|
355
|
+
pc_diff_files.extend(_json_fragment_diff(device.hostname, res.old_json_fragment_files, new_json_fragment_files))
|
|
356
|
+
|
|
357
|
+
if pc_diff_files:
|
|
358
|
+
pc_diff_files.sort(key=lambda f: f.label)
|
|
359
|
+
ret[device] = PCDiff(hostname=device.hostname, diff_files=pc_diff_files)
|
|
360
360
|
elif old is not None:
|
|
361
361
|
rb = rulebook.get_rulebook(device.hw)
|
|
362
362
|
diff_tree = patching.make_diff(old, new, rb, [acl_rules, res.filter_acl_rules])
|
|
363
363
|
diff_tree = patching.strip_unchanged(diff_tree)
|
|
364
364
|
ret[device] = diff_tree
|
|
365
|
+
|
|
365
366
|
return ret
|
|
366
367
|
|
|
367
368
|
|
|
@@ -65,7 +65,7 @@ annet/annlib/rbparser/platform.py,sha256=iyqy4A-6vUKM4j6hrOA6tsgWBXk7LcvkFrS2QHg
|
|
|
65
65
|
annet/annlib/rbparser/syntax.py,sha256=eEUmszwPjdw57aofUYNQVcaxHPNV9yx9JNapjYY-BGM,3572
|
|
66
66
|
annet/annlib/rulebook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
67
|
annet/annlib/rulebook/common.py,sha256=9kCZwZpsH5UliF2OzaN9nLs2eLlz_d__4L7_oZ3SrCw,16054
|
|
68
|
-
annet/api/__init__.py,sha256=
|
|
68
|
+
annet/api/__init__.py,sha256=vwmyZK_iCdAjlJ0jS5CXSroDAZFzGe3JiXL-WoZiovU,33154
|
|
69
69
|
annet/configs/context.yml,sha256=nt4QnzYzrG2hqmaWOUsab2wgFl-CXmFSzbto6rqqFt4,291
|
|
70
70
|
annet/configs/logging.yaml,sha256=Hu42lRK248dssp9TgkbHCaZNl0E6f4IChGb0XaQnTVo,970
|
|
71
71
|
annet/generators/__init__.py,sha256=tk20umBuMEcd8QKET3mxJQsDj-dvjlwGnrlgTw0wbRY,15622
|
|
@@ -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.
|
|
132
|
-
annet-0.12.
|
|
133
|
-
annet-0.12.
|
|
134
|
-
annet-0.12.
|
|
135
|
-
annet-0.12.
|
|
136
|
-
annet-0.12.
|
|
137
|
-
annet-0.12.
|
|
131
|
+
annet-0.12.10.dist-info/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
|
|
132
|
+
annet-0.12.10.dist-info/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
|
|
133
|
+
annet-0.12.10.dist-info/METADATA,sha256=tEfqI1Z5ItVoyeHNlvT2C1c1y_NK9wObretRWG-dcJQ,695
|
|
134
|
+
annet-0.12.10.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
135
|
+
annet-0.12.10.dist-info/entry_points.txt,sha256=yHimujIzR2bwNIbb--MTs_GpXiAve89Egpu2LlgTEkg,119
|
|
136
|
+
annet-0.12.10.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
|
|
137
|
+
annet-0.12.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|