annet 0.16.22__py3-none-any.whl → 0.16.23__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/annlib/tabparser.py CHANGED
@@ -354,15 +354,12 @@ class ArubaFormatter(BlockExitFormatter):
354
354
  return self.split_remove_spaces(text)
355
355
 
356
356
 
357
- class AristaFormatter(CiscoFormatter):
358
-
359
- def block_exit(self, context: Optional[FormatterContext]) -> str:
360
- current = context and context.row or ""
357
+ class AristaFormatter(BlockExitFormatter):
358
+ def __init__(self, indent=" "):
359
+ super().__init__("exit", indent)
361
360
 
362
- if current.startswith(("address-family")):
363
- yield from block_wrapper("exit")
364
- else:
365
- yield from super().block_exit(context)
361
+ def split(self, text):
362
+ return self.split_remove_spaces(text)
366
363
 
367
364
 
368
365
  class AsrFormatter(BlockExitFormatter):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: annet
3
- Version: 0.16.22
3
+ Version: 0.16.23
4
4
  Summary: annet
5
5
  Home-page: https://github.com/annetutil/annet
6
6
  License: MIT
@@ -50,7 +50,7 @@ annet/annlib/jsontools.py,sha256=DVmA6kmKGSCsKrFnag4EMR1WKe39Owlvzpfdo726ufk,547
50
50
  annet/annlib/lib.py,sha256=eJ4hcVuQ6pdYBzLs4YKCHFtq45idOfZCYp92XfF7_QI,15317
51
51
  annet/annlib/output.py,sha256=_SjJ6G6bejvnTKqNHw6xeio0FT9oO3OIkLaOC3cEga4,7569
52
52
  annet/annlib/patching.py,sha256=2CpAT3T43IUFJR57qTYSwjQ0smg0uHWN43df4n1WArs,19937
53
- annet/annlib/tabparser.py,sha256=tyTGtad90EfiQq9oNdCx8mEJ5edGcmKMXgoGwPLKrw4,29086
53
+ annet/annlib/tabparser.py,sha256=Xsje7t2bEZqZ8hhgnEYgjQGaDZ5mBWgNxwE2wpCkwXQ,28961
54
54
  annet/annlib/types.py,sha256=VHU0CBADfYmO0xzB_c5f-mcuU3dUumuJczQnqGlib9M,852
55
55
  annet/annlib/netdev/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
56
  annet/annlib/netdev/db.py,sha256=fI_u5aya4l61mbYSjj4JwlVfi3s7obt2jqERSuXGRUI,1634
@@ -164,10 +164,10 @@ annet_generators/rpl_example/__init__.py,sha256=z4-gsDv06BBpgTwRohc50VBQYFD26QVu
164
164
  annet_generators/rpl_example/items.py,sha256=6x7b0wZ7Vjn6yCaJ-aGbpTHm7fyqO77b-LRqzzhEbh4,615
165
165
  annet_generators/rpl_example/policy_generator.py,sha256=KFCqn347CIPcnllOHfINYeKgNSr6Wl-bdM5Xj_YKhYM,11183
166
166
  annet_generators/rpl_example/route_policy.py,sha256=QjxFjkePHfTo2CpMeRVaDqZXNXLM-gGlE8EocHuOR4Y,1189
167
- annet-0.16.22.dist-info/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
168
- annet-0.16.22.dist-info/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
169
- annet-0.16.22.dist-info/METADATA,sha256=frHIxkxuAjOtU1YOrES7-G9ENwzZeGgD2MNLc3TrW6g,728
170
- annet-0.16.22.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
171
- annet-0.16.22.dist-info/entry_points.txt,sha256=5lIaDGlGi3l6QQ2ry2jZaqViP5Lvt8AmsegdD0Uznck,192
172
- annet-0.16.22.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
173
- annet-0.16.22.dist-info/RECORD,,
167
+ annet-0.16.23.dist-info/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
168
+ annet-0.16.23.dist-info/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
169
+ annet-0.16.23.dist-info/METADATA,sha256=1zBWYojg8yokwhWjMABjKBWyYng1OdNsZZ4G4b2rXH0,728
170
+ annet-0.16.23.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
171
+ annet-0.16.23.dist-info/entry_points.txt,sha256=5lIaDGlGi3l6QQ2ry2jZaqViP5Lvt8AmsegdD0Uznck,192
172
+ annet-0.16.23.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
173
+ annet-0.16.23.dist-info/RECORD,,