annet 3.1.0__py3-none-any.whl → 3.1.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.

File without changes
@@ -0,0 +1,30 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import AristaFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class AristaVendor(AbstractVendor):
9
+ NAME = "arista"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["Arista"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "no"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("Arista")
21
+
22
+ def svi_name(self, num: int) -> str:
23
+ return f"Vlan{num}"
24
+
25
+ def make_formatter(self, **kwargs) -> AristaFormatter:
26
+ return AristaFormatter(**kwargs)
27
+
28
+ @property
29
+ def exit(self) -> str:
30
+ return "exit"
@@ -0,0 +1,30 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import ArubaFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class ArubaVendor(AbstractVendor):
9
+ NAME = "aruba"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["Aruba"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "no"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("Aruba")
21
+
22
+ def make_formatter(self, **kwargs) -> ArubaFormatter:
23
+ return ArubaFormatter(**kwargs)
24
+
25
+ @property
26
+ def exit(self) -> str:
27
+ return "exit"
28
+
29
+ def diff(self, order: bool) -> str:
30
+ return "common.ordered_diff" if order else "aruba.default_diff"
@@ -0,0 +1,27 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import B4comFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class B4ComVendor(AbstractVendor):
9
+ NAME = "b4com"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["B4com"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "no"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("B4com")
21
+
22
+ def make_formatter(self, **kwargs) -> B4comFormatter:
23
+ return B4comFormatter(**kwargs)
24
+
25
+ @property
26
+ def exit(self) -> str:
27
+ return "exit"
@@ -0,0 +1,30 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import CiscoFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class CiscoVendor(AbstractVendor):
9
+ NAME = "cisco"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["Cisco"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "no"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("Cisco")
21
+
22
+ def svi_name(self, num: int) -> str:
23
+ return f"Vlan{num}"
24
+
25
+ def make_formatter(self, **kwargs) -> CiscoFormatter:
26
+ return CiscoFormatter(**kwargs)
27
+
28
+ @property
29
+ def exit(self) -> str:
30
+ return "exit"
@@ -0,0 +1,27 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import HuaweiFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class H3CVendor(AbstractVendor):
9
+ NAME = "h3c"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["H3C"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "undo"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("H3C")
21
+
22
+ def make_formatter(self, **kwargs) -> HuaweiFormatter:
23
+ return HuaweiFormatter(**kwargs)
24
+
25
+ @property
26
+ def exit(self) -> str:
27
+ return "quit"
@@ -0,0 +1,30 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import HuaweiFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class HuaweiVendor(AbstractVendor):
9
+ NAME = "huawei"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["Huawei"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "undo"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("Huawei")
21
+
22
+ def svi_name(self, num: int) -> str:
23
+ return f"Vlanif{num}"
24
+
25
+ def make_formatter(self, **kwargs) -> HuaweiFormatter:
26
+ return HuaweiFormatter(**kwargs)
27
+
28
+ @property
29
+ def exit(self) -> str:
30
+ return "quit"
@@ -0,0 +1,30 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import AsrFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class IosXrVendor(AbstractVendor):
9
+ NAME = "iosxr"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["Cisco.XR", "Cisco.ASR", "Cisco.XRV"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "no"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("Cisco XR")
21
+
22
+ def svi_name(self, num: int) -> str:
23
+ return f"Vlan{num}"
24
+
25
+ def make_formatter(self, **kwargs) -> AsrFormatter:
26
+ return AsrFormatter(**kwargs)
27
+
28
+ @property
29
+ def exit(self) -> str:
30
+ return "exit"
@@ -0,0 +1,33 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import JuniperFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class JuniperVendor(AbstractVendor):
9
+ NAME = "juniper"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["Juniper"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "delete"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("Juniper")
21
+
22
+ def svi_name(self, num: int) -> str:
23
+ return f"irb.{num}"
24
+
25
+ def make_formatter(self, **kwargs) -> JuniperFormatter:
26
+ return JuniperFormatter(**kwargs)
27
+
28
+ @property
29
+ def exit(self) -> str:
30
+ return ""
31
+
32
+ def diff(self, order: bool) -> str:
33
+ return "juniper.ordered_diff" if order else "juniper.default_diff"
@@ -0,0 +1,27 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import NexusFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class NexusVendor(AbstractVendor):
9
+ NAME = "nexus"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["Cisco.Nexus"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "no"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("Cisco Nexus")
21
+
22
+ def make_formatter(self, **kwargs) -> NexusFormatter:
23
+ return NexusFormatter(**kwargs)
24
+
25
+ @property
26
+ def exit(self) -> str:
27
+ return "exit"
@@ -0,0 +1,30 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import NokiaFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class NokiaVendor(AbstractVendor):
9
+ NAME = "nokia"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["Nokia"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "delete"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("Nokia")
21
+
22
+ def make_formatter(self, **kwargs) -> NokiaFormatter:
23
+ return NokiaFormatter(**kwargs)
24
+
25
+ @property
26
+ def exit(self) -> str:
27
+ return ""
28
+
29
+ def diff(self, order: bool) -> str:
30
+ return "juniper.ordered_diff" if order else "juniper.default_diff"
@@ -0,0 +1,27 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import OptixtransFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class OptixTransVendor(AbstractVendor):
9
+ NAME = "optixtrans"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["OptiXtrans"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "undo"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("Huawei OptiXtrans")
21
+
22
+ def make_formatter(self, **kwargs) -> OptixtransFormatter:
23
+ return OptixtransFormatter(**kwargs)
24
+
25
+ @property
26
+ def exit(self) -> str:
27
+ return "quit"
@@ -0,0 +1,27 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import CommonFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class PCVendor(AbstractVendor):
9
+ NAME = "pc"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["PC"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "-"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("PC")
21
+
22
+ def make_formatter(self, **kwargs) -> CommonFormatter:
23
+ return CommonFormatter(**kwargs)
24
+
25
+ @property
26
+ def exit(self) -> str:
27
+ return ""
@@ -0,0 +1,30 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import RibbonFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class RibbonVendor(AbstractVendor):
9
+ NAME = "ribbon"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["Ribbon"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "delete"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("Ribbon")
21
+
22
+ def make_formatter(self, **kwargs) -> RibbonFormatter:
23
+ return RibbonFormatter(**kwargs)
24
+
25
+ @property
26
+ def exit(self) -> str:
27
+ return "exit"
28
+
29
+ def diff(self, order: bool) -> str:
30
+ return "juniper.ordered_diff" if order else "juniper.default_diff"
@@ -0,0 +1,27 @@
1
+ from annet.annlib.netdev.views.hardware import HardwareView
2
+ from annet.annlib.tabparser import RosFormatter
3
+ from annet.vendors.base import AbstractVendor
4
+ from annet.vendors.registry import registry
5
+
6
+
7
+ @registry.register
8
+ class RouterOSVendor(AbstractVendor):
9
+ NAME = "routeros"
10
+
11
+ def match(self) -> list[str]:
12
+ return ["RouterOS"]
13
+
14
+ @property
15
+ def reverse(self) -> str:
16
+ return "remove"
17
+
18
+ @property
19
+ def hardware(self) -> HardwareView:
20
+ return HardwareView("RouterOS")
21
+
22
+ def make_formatter(self, **kwargs) -> RosFormatter:
23
+ return RosFormatter(**kwargs)
24
+
25
+ @property
26
+ def exit(self) -> str:
27
+ return ""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: annet
3
- Version: 3.1.0
3
+ Version: 3.1.1
4
4
  Summary: annet
5
5
  Home-page: https://github.com/annetutil/annet
6
6
  License: MIT
@@ -182,8 +182,23 @@ annet/rulebook/texts/routeros.rul,sha256=ipfxjj0mjFef6IsUlupqx4BY_Je_OUb8u_U1019
182
182
  annet/vendors/__init__.py,sha256=gQcDFlKeWDZB6vxJ_MdPWEoE-C5dg-YgXvgGkuV9YLw,569
183
183
  annet/vendors/base.py,sha256=KLf_lv-Vm3uPH_Kuovdr1V257EALmAS_gYhKEL196FA,919
184
184
  annet/vendors/registry.py,sha256=zJUj5vJ105kD7xvxt84MYNTNYZI08AKCNTCmE0YtMzo,2539
185
- annet-3.1.0.dist-info/licenses/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
186
- annet-3.1.0.dist-info/licenses/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
185
+ annet/vendors/library/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
186
+ annet/vendors/library/arista.py,sha256=SF6RxoOsQwp7MUmwnAS0V8HrmHkGKDdL5jj3pPOmVLo,732
187
+ annet/vendors/library/aruba.py,sha256=coAEyEsHkILvcIx6IZeBywJWXLgcRPffu56AYQrTedY,768
188
+ annet/vendors/library/b4com.py,sha256=jRemG0mur0cItmGLmjrqDKt5GDsJ56nIyB6JCsenWhA,655
189
+ annet/vendors/library/cisco.py,sha256=ZwBKBWVJS1DmUl1DnklyxQr85kEg7wef75emOFahIZc,725
190
+ annet/vendors/library/h3c.py,sha256=x1QwQqcjD4AUTtJI5CJ9g90N14piNFUuaJ9uAorST3k,652
191
+ annet/vendors/library/huawei.py,sha256=cw69jgFfce4l2Lv_fs2x54b30LBdkjhsuwg8RglFCJ8,736
192
+ annet/vendors/library/iosxr.py,sha256=ZlomuBOH1S1DpejL_h72BRs013AsbxOC1UJdJFJ7gdk,751
193
+ annet/vendors/library/juniper.py,sha256=1rVdNtOmAd96F_jMSfxKJqmcVhvXcjGxPg6zJ72qK-Q,855
194
+ annet/vendors/library/nexus.py,sha256=OAAfJB4OON34iEJb1jIl_v7aIwcK10yxcPOV_l1E6AI,667
195
+ annet/vendors/library/nokia.py,sha256=GWZ6f2L_mSy9RMsRR-8FJKXFA7x9pj_tODy2CD7fxXw,771
196
+ annet/vendors/library/optixtrans.py,sha256=425akCUYKdeM7qV1ZUvfRjho_bWoWhHotoo0j5plGmY,699
197
+ annet/vendors/library/pc.py,sha256=UOfaBtlFUGiAF9qsjlhgWNDJz31SqlMdtyYqoYtn6GM,641
198
+ annet/vendors/library/ribbon.py,sha256=3DJBZ5wOoi0mkfqLpNeRJIkThVuRqSiJ_67G7eoKZzs,782
199
+ annet/vendors/library/routeros.py,sha256=pvMG3MJpc4-pUBYnEzOXWfK0vqM7l0SlxwlGywaPovk,661
200
+ annet-3.1.1.dist-info/licenses/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
201
+ annet-3.1.1.dist-info/licenses/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
187
202
  annet_generators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
188
203
  annet_generators/example/__init__.py,sha256=OJ77uj8axc-FIyIu_Xdcnzmde3oQW5mk5qbODkhuVc8,355
189
204
  annet_generators/example/hostname.py,sha256=RloLzNVetEoWPLITzfJ13Nk3CC0yi-cZB1RTd6dnuhI,2541
@@ -196,8 +211,8 @@ annet_generators/rpl_example/generator.py,sha256=EWah19gOH8G-QyNyWqxCqdRi0BK7GbM
196
211
  annet_generators/rpl_example/items.py,sha256=d99HSXDHFjZq511EvGhIqRTWK3F4ZsCWfdUqFYQcyhE,772
197
212
  annet_generators/rpl_example/mesh.py,sha256=z_WgfDZZ4xnyh3cSf75igyH09hGvtexEVwy1gCD_DzA,288
198
213
  annet_generators/rpl_example/route_policy.py,sha256=z6nPb0VDeQtKD1NIg9sFvmUxBD5tVs2frfNIuKdM-5c,2318
199
- annet-3.1.0.dist-info/METADATA,sha256=f3Fl0PUMC6covEz71fAYKY8zPOV3ffBitlfF5XM1KVo,815
200
- annet-3.1.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
201
- annet-3.1.0.dist-info/entry_points.txt,sha256=5lIaDGlGi3l6QQ2ry2jZaqViP5Lvt8AmsegdD0Uznck,192
202
- annet-3.1.0.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
203
- annet-3.1.0.dist-info/RECORD,,
214
+ annet-3.1.1.dist-info/METADATA,sha256=wVN7vn7_mPQoevv8B1MEWg3JQWiDQOVL8kcLsPxPjRM,815
215
+ annet-3.1.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
216
+ annet-3.1.1.dist-info/entry_points.txt,sha256=5lIaDGlGi3l6QQ2ry2jZaqViP5Lvt8AmsegdD0Uznck,192
217
+ annet-3.1.1.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
218
+ annet-3.1.1.dist-info/RECORD,,
File without changes