annet 0.16.27__py3-none-any.whl → 0.16.29__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.

@@ -70,8 +70,8 @@
70
70
  "Huawei.EI": "-EI(-|$)",
71
71
  "Huawei.HI": "-HI(-|$)",
72
72
  "Huawei.SI": "-SI(-|$)",
73
- "Huawei.OptiXtrans": " OptiXtrans|DC",
74
- "Huawei.OptiXtrans.DC": " DC",
73
+ "Huawei.OptiXtrans": " (OptiXtrans|DC\\d\\d\\d)",
74
+ "Huawei.OptiXtrans.DC": " DC\\d\\d\\d",
75
75
  "Huawei.OptiXtrans.DC.DC908": " DC908",
76
76
 
77
77
  "Juniper": "^[Jj]uniper",
annet/implicit.py CHANGED
@@ -133,17 +133,29 @@ def _implicit_tree(device):
133
133
  no shutdown
134
134
  """
135
135
  elif device.hw.Cisco:
136
- text += r"""
137
- !interface */\S*Ethernet\S+/
138
- mtu 1500
139
- no shutdown
140
- !interface */Loopback[0-9.]+/
141
- mtu 1500
142
- no shutdown
143
- !interface */port-channel[0-9.]+/
144
- mtu 1500
145
- no shutdown
146
- """
136
+ # C2900/C3500/C3600 does not support the MTU on a per-interface basis
137
+ if device.hw.Cisco.Catalyst.C2900 or device.hw.Cisco.Catalyst.C3500 \
138
+ or device.hw.Cisco.Catalyst.C3600:
139
+ text += r"""
140
+ !interface */\S*Ethernet\S+/
141
+ no shutdown
142
+ !interface */Loopback[0-9.]+/
143
+ no shutdown
144
+ !interface */port-channel[0-9.]+/
145
+ no shutdown
146
+ """
147
+ else:
148
+ text += r"""
149
+ !interface */\S*Ethernet\S+/
150
+ mtu 1500
151
+ no shutdown
152
+ !interface */Loopback[0-9.]+/
153
+ mtu 1500
154
+ no shutdown
155
+ !interface */port-channel[0-9.]+/
156
+ mtu 1500
157
+ no shutdown
158
+ """
147
159
  if device.hw.Cisco.Catalyst:
148
160
  # this configuration is not visible in running-config when enabled
149
161
  text += r"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: annet
3
- Version: 0.16.27
3
+ Version: 0.16.29
4
4
  Summary: annet
5
5
  Home-page: https://github.com/annetutil/annet
6
6
  License: MIT
@@ -11,7 +11,7 @@ annet/executor.py,sha256=Jny-hm0otZA1naPpFWR-R16SbaZioSQ8pkx-Yd2PYlM,19004
11
11
  annet/filtering.py,sha256=ZtqxPsKdV9reZoRxtQyBg22BqyMqd-2SotYcxZ-68AQ,903
12
12
  annet/gen.py,sha256=rOAveprvBaEXbLyaQUhQ0QtOvcDfndlIOpchNhu8M1U,33499
13
13
  annet/hardware.py,sha256=_iR28dWiPtt6ZYdk-qg1sxazkSRJE3ukqKB-fFFfQak,1141
14
- annet/implicit.py,sha256=kGKO-mdvPw4HROx4VhnQWxbNlnbG2LuSYEzZbQX2Elo,5518
14
+ annet/implicit.py,sha256=G6EwZbrtUp089qRAwh96hminp236-1pJbeKAedoEafg,6056
15
15
  annet/lib.py,sha256=lOdz3UJFYkO0wnuzIRRq3FpULQliqBtfmGmKOGVFO4Q,4238
16
16
  annet/output.py,sha256=FYMcWCc43-b51KsCiKnXPZHawhgWNoVtY9gRqw__Ce0,7473
17
17
  annet/parallel.py,sha256=hLkzEht0KhzmzUWDdO4QFYQHzhxs3wPlTA8DxbB2ziw,17160
@@ -55,7 +55,7 @@ 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
57
57
  annet/annlib/netdev/devdb/__init__.py,sha256=aKYjjLbJebdKBjnGDpVLQdSqrV2JL24spGm58tmMWVU,892
58
- annet/annlib/netdev/devdb/data/devdb.json,sha256=OM3FLBUGPJ_d97Q3hnavj51CoWlilJsoJLkHSzE-nPg,6127
58
+ annet/annlib/netdev/devdb/data/devdb.json,sha256=mgurM8QiP_fOBSeRBFO86aPrEygLBH9E2TeLw13vdbg,6147
59
59
  annet/annlib/netdev/views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
60
  annet/annlib/netdev/views/dump.py,sha256=rIlyvnA3uM8bB_7oq1nS2KDxTp6dQh2hz-FbNhYIpOU,4630
61
61
  annet/annlib/netdev/views/hardware.py,sha256=3JCZLH7deIHhCguwPJTUX-WDvWjG_xt6BdSEZSO6zkQ,4226
@@ -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.27.dist-info/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
179
- annet-0.16.27.dist-info/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
180
- annet-0.16.27.dist-info/METADATA,sha256=BE6PMNs83GUP7TVnBYRrdbz6drAvR9AK1c4mimsEysI,729
181
- annet-0.16.27.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
182
- annet-0.16.27.dist-info/entry_points.txt,sha256=5lIaDGlGi3l6QQ2ry2jZaqViP5Lvt8AmsegdD0Uznck,192
183
- annet-0.16.27.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
184
- annet-0.16.27.dist-info/RECORD,,
178
+ annet-0.16.29.dist-info/AUTHORS,sha256=rh3w5P6gEgqmuC-bw-HB68vBCr-yIBFhVL0PG4hguLs,878
179
+ annet-0.16.29.dist-info/LICENSE,sha256=yPxl7dno02Pw7gAcFPIFONzx_gapwDoPXsIsh6Y7lC0,1079
180
+ annet-0.16.29.dist-info/METADATA,sha256=fDBxRe0RkvGbgti60SP9iJLoczzdgjF4wL8rHoIxkZE,729
181
+ annet-0.16.29.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
182
+ annet-0.16.29.dist-info/entry_points.txt,sha256=5lIaDGlGi3l6QQ2ry2jZaqViP5Lvt8AmsegdD0Uznck,192
183
+ annet-0.16.29.dist-info/top_level.txt,sha256=QsoTZBsUtwp_FEcmRwuN8QITBmLOZFqjssRfKilGbP8,23
184
+ annet-0.16.29.dist-info/RECORD,,