netbox-eosl 0.2.0__tar.gz → 0.2.1__tar.gz
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.
- {netbox_eosl-0.2.0/netbox_eosl.egg-info → netbox_eosl-0.2.1}/PKG-INFO +21 -11
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/README.md +20 -10
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/netbox_eosl/__init__.py +1 -1
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/netbox_eosl/client.py +7 -0
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/netbox_eosl/management/commands/eosl_check.py +14 -10
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/netbox_eosl/templates/netbox_eosl/eosl_panel.html +10 -1
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1/netbox_eosl.egg-info}/PKG-INFO +21 -11
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/pyproject.toml +1 -1
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/LICENSE +0 -0
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/MANIFEST.in +0 -0
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/netbox_eosl/management/__init__.py +0 -0
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/netbox_eosl/management/commands/__init__.py +0 -0
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/netbox_eosl/matching.py +0 -0
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/netbox_eosl/template_content.py +0 -0
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/netbox_eosl.egg-info/SOURCES.txt +0 -0
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/netbox_eosl.egg-info/dependency_links.txt +0 -0
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/netbox_eosl.egg-info/requires.txt +0 -0
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/netbox_eosl.egg-info/top_level.txt +0 -0
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/setup.cfg +0 -0
- {netbox_eosl-0.2.0 → netbox_eosl-0.2.1}/tests/test_matching.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: netbox-eosl
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Show source-backed hardware end-of-service-life status on NetBox Devices and Device Types, from EOSL.ai.
|
|
5
5
|
Author-email: "EOSL.ai" <hello@eosl.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -29,9 +29,10 @@ A panel appears on the right side of each Device and Device Type page: end-of-sa
|
|
|
29
29
|
end-of-service-life date, the Support Runway Score, a link to the vendor bulletin, and a link to
|
|
30
30
|
the full EOSL.ai model page. A `manage.py eosl_check` command audits your whole inventory.
|
|
31
31
|
|
|
32
|
-
Matching is
|
|
33
|
-
|
|
34
|
-
offers a search link instead of
|
|
32
|
+
Matching is deterministic and never fuzzy, so the plugin can't put a wrong end-of-life date on the
|
|
33
|
+
wrong device. When it resolves a vendor short code or packaging variant, the panel shows what it
|
|
34
|
+
matched from. If a part number isn't in the database, it says so and offers a search link instead of
|
|
35
|
+
guessing.
|
|
35
36
|
|
|
36
37
|
## Requirements
|
|
37
38
|
|
|
@@ -90,26 +91,28 @@ python /opt/netbox/netbox/manage.py eosl_check
|
|
|
90
91
|
```
|
|
91
92
|
|
|
92
93
|
```
|
|
93
|
-
EOSL.ai audit
|
|
94
|
+
EOSL.ai audit: 214 device types
|
|
94
95
|
Past / action recommended: 57
|
|
95
96
|
Ending soon (plan/watch): 18
|
|
96
97
|
Tracked, supported: 44
|
|
97
|
-
Active
|
|
98
|
+
Active, no EOL announced: 9
|
|
98
99
|
Not found in EOSL.ai: 79
|
|
99
100
|
No part number set: 7
|
|
100
101
|
|
|
101
|
-
|
|
102
|
-
Cisco Catalyst 3850-48P (WS-C3850-48P-S)
|
|
102
|
+
Needs action (past end-of-service-life, or action recommended):
|
|
103
|
+
Cisco Catalyst 3850-48P (WS-C3850-48P-S): Little or no runway, end of service life 2025-10, 12 in service, https://eosl.ai/system/cisco-catalyst-3850/
|
|
104
|
+
Fortinet FortiGate 60E (FortiGate-60E): Action recommended, end of service life 2026-12, 3 in service, https://eosl.ai/system/fortinet-fortigate-60e/
|
|
103
105
|
...
|
|
104
106
|
```
|
|
105
107
|
|
|
106
|
-
|
|
108
|
+
"Action recommended" includes hardware whose last date of support is still ahead, so each line
|
|
109
|
+
carries its status and date. Use `--past-only` to print just that list (handy in a cron/report).
|
|
107
110
|
|
|
108
111
|
## How matching works
|
|
109
112
|
|
|
110
113
|
The plugin downloads `https://eosl.ai/data/lookup.json` (the same part-number → status map that
|
|
111
114
|
powers the eosl.ai bulk checker) and caches it. For each Device Type it resolves the `part_number`
|
|
112
|
-
field (a Device inherits it from its Device Type) in
|
|
115
|
+
field (a Device inherits it from its Device Type) in deterministic, conservative steps:
|
|
113
116
|
|
|
114
117
|
1. **Exact** match (case-insensitive).
|
|
115
118
|
2. **Loose** match — ignores spaces/dashes/case, so `FortiGate 60E` resolves `FortiGate-60E`.
|
|
@@ -117,6 +120,13 @@ field (a Device inherits it from its Device Type) in three deterministic, conser
|
|
|
117
120
|
but **only when the NetBox manufacturer matches that vendor**. E.g. a Fortinet `FG-60E` resolves
|
|
118
121
|
`FortiGate-60E`, `FS-148E` → `FortiSwitch-148E`, `FAP-221E` → `FortiAP-221E`. The vendor gate means
|
|
119
122
|
a non-Fortinet `FG-…` can never be mis-resolved onto a Fortinet record.
|
|
123
|
+
4. **Variant aliases** from `https://eosl.ai/data/aliases.json`: packaging forms of the same hardware,
|
|
124
|
+
such as Juniper `EX4300-48T-TAA` or Cisco `ASA5506`. EOSL.ai admits an alias only when every record
|
|
125
|
+
it could mean has the same vendor and the same dates; short keys and keys shared across vendors
|
|
126
|
+
resolve only when the NetBox manufacturer names the vendor. The file is optional: if it cannot be
|
|
127
|
+
fetched, matching runs without it.
|
|
128
|
+
5. If the part number finds nothing, the device type's **model name** is tried with the same rules
|
|
129
|
+
(NetBox's device-type library leaves some part numbers blank, e.g. Dell "PowerEdge R730").
|
|
120
130
|
|
|
121
131
|
There is **no fuzzy or substring matching**. No part number, or no confident match → a neutral
|
|
122
132
|
"not tracked" panel with a search link. Nothing is inferred.
|
|
@@ -130,7 +140,7 @@ The matching logic lives in `netbox_eosl/matching.py` (no Django imports) and is
|
|
|
130
140
|
for verification. Where a vendor publishes no per-model EOSL date, EOSL.ai computes it from the
|
|
131
141
|
vendor's published support-life policy and labels it "computed".
|
|
132
142
|
- This plugin **reads** public data; it sends none of your inventory anywhere. The only outbound
|
|
133
|
-
|
|
143
|
+
requests fetch the public lookup table and the alias file.
|
|
134
144
|
- Confirm any critical date against the linked vendor bulletin before a purchase, renewal, or
|
|
135
145
|
migration decision.
|
|
136
146
|
|
|
@@ -8,9 +8,10 @@ A panel appears on the right side of each Device and Device Type page: end-of-sa
|
|
|
8
8
|
end-of-service-life date, the Support Runway Score, a link to the vendor bulletin, and a link to
|
|
9
9
|
the full EOSL.ai model page. A `manage.py eosl_check` command audits your whole inventory.
|
|
10
10
|
|
|
11
|
-
Matching is
|
|
12
|
-
|
|
13
|
-
offers a search link instead of
|
|
11
|
+
Matching is deterministic and never fuzzy, so the plugin can't put a wrong end-of-life date on the
|
|
12
|
+
wrong device. When it resolves a vendor short code or packaging variant, the panel shows what it
|
|
13
|
+
matched from. If a part number isn't in the database, it says so and offers a search link instead of
|
|
14
|
+
guessing.
|
|
14
15
|
|
|
15
16
|
## Requirements
|
|
16
17
|
|
|
@@ -69,26 +70,28 @@ python /opt/netbox/netbox/manage.py eosl_check
|
|
|
69
70
|
```
|
|
70
71
|
|
|
71
72
|
```
|
|
72
|
-
EOSL.ai audit
|
|
73
|
+
EOSL.ai audit: 214 device types
|
|
73
74
|
Past / action recommended: 57
|
|
74
75
|
Ending soon (plan/watch): 18
|
|
75
76
|
Tracked, supported: 44
|
|
76
|
-
Active
|
|
77
|
+
Active, no EOL announced: 9
|
|
77
78
|
Not found in EOSL.ai: 79
|
|
78
79
|
No part number set: 7
|
|
79
80
|
|
|
80
|
-
|
|
81
|
-
Cisco Catalyst 3850-48P (WS-C3850-48P-S)
|
|
81
|
+
Needs action (past end-of-service-life, or action recommended):
|
|
82
|
+
Cisco Catalyst 3850-48P (WS-C3850-48P-S): Little or no runway, end of service life 2025-10, 12 in service, https://eosl.ai/system/cisco-catalyst-3850/
|
|
83
|
+
Fortinet FortiGate 60E (FortiGate-60E): Action recommended, end of service life 2026-12, 3 in service, https://eosl.ai/system/fortinet-fortigate-60e/
|
|
82
84
|
...
|
|
83
85
|
```
|
|
84
86
|
|
|
85
|
-
|
|
87
|
+
"Action recommended" includes hardware whose last date of support is still ahead, so each line
|
|
88
|
+
carries its status and date. Use `--past-only` to print just that list (handy in a cron/report).
|
|
86
89
|
|
|
87
90
|
## How matching works
|
|
88
91
|
|
|
89
92
|
The plugin downloads `https://eosl.ai/data/lookup.json` (the same part-number → status map that
|
|
90
93
|
powers the eosl.ai bulk checker) and caches it. For each Device Type it resolves the `part_number`
|
|
91
|
-
field (a Device inherits it from its Device Type) in
|
|
94
|
+
field (a Device inherits it from its Device Type) in deterministic, conservative steps:
|
|
92
95
|
|
|
93
96
|
1. **Exact** match (case-insensitive).
|
|
94
97
|
2. **Loose** match — ignores spaces/dashes/case, so `FortiGate 60E` resolves `FortiGate-60E`.
|
|
@@ -96,6 +99,13 @@ field (a Device inherits it from its Device Type) in three deterministic, conser
|
|
|
96
99
|
but **only when the NetBox manufacturer matches that vendor**. E.g. a Fortinet `FG-60E` resolves
|
|
97
100
|
`FortiGate-60E`, `FS-148E` → `FortiSwitch-148E`, `FAP-221E` → `FortiAP-221E`. The vendor gate means
|
|
98
101
|
a non-Fortinet `FG-…` can never be mis-resolved onto a Fortinet record.
|
|
102
|
+
4. **Variant aliases** from `https://eosl.ai/data/aliases.json`: packaging forms of the same hardware,
|
|
103
|
+
such as Juniper `EX4300-48T-TAA` or Cisco `ASA5506`. EOSL.ai admits an alias only when every record
|
|
104
|
+
it could mean has the same vendor and the same dates; short keys and keys shared across vendors
|
|
105
|
+
resolve only when the NetBox manufacturer names the vendor. The file is optional: if it cannot be
|
|
106
|
+
fetched, matching runs without it.
|
|
107
|
+
5. If the part number finds nothing, the device type's **model name** is tried with the same rules
|
|
108
|
+
(NetBox's device-type library leaves some part numbers blank, e.g. Dell "PowerEdge R730").
|
|
99
109
|
|
|
100
110
|
There is **no fuzzy or substring matching**. No part number, or no confident match → a neutral
|
|
101
111
|
"not tracked" panel with a search link. Nothing is inferred.
|
|
@@ -109,7 +119,7 @@ The matching logic lives in `netbox_eosl/matching.py` (no Django imports) and is
|
|
|
109
119
|
for verification. Where a vendor publishes no per-model EOSL date, EOSL.ai computes it from the
|
|
110
120
|
vendor's published support-life policy and labels it "computed".
|
|
111
121
|
- This plugin **reads** public data; it sends none of your inventory anywhere. The only outbound
|
|
112
|
-
|
|
122
|
+
requests fetch the public lookup table and the alias file.
|
|
113
123
|
- Confirm any critical date against the linked vendor bulletin before a purchase, renewal, or
|
|
114
124
|
migration decision.
|
|
115
125
|
|
|
@@ -95,10 +95,12 @@ def lookup_part(part_number, vendor=None, model=None):
|
|
|
95
95
|
exact, loose_index = _indexes()
|
|
96
96
|
aliases = _load_aliases()
|
|
97
97
|
rec = None
|
|
98
|
+
matched_from = None
|
|
98
99
|
for candidate in (part_number, model):
|
|
99
100
|
if candidate:
|
|
100
101
|
rec = matching.match(candidate, vendor, exact, loose_index, aliases)
|
|
101
102
|
if rec:
|
|
103
|
+
matched_from = candidate
|
|
102
104
|
break
|
|
103
105
|
if not rec:
|
|
104
106
|
return None
|
|
@@ -118,6 +120,11 @@ def lookup_part(part_number, vendor=None, model=None):
|
|
|
118
120
|
"state_label": label,
|
|
119
121
|
"state_css": css,
|
|
120
122
|
"page_url": (_cfg("api_url").rstrip("/") + "/system/" + slug + "/") if slug else _cfg("api_url"),
|
|
123
|
+
# What NetBox held that produced the match, shown when it differs from the catalogued part
|
|
124
|
+
# (a vendor short code, a packaging variant, or the device type's model name), so a reader
|
|
125
|
+
# never sees a different part number with no explanation.
|
|
126
|
+
"matched_from": matched_from if matched_from != rec.get("p") else None,
|
|
127
|
+
"matched_by_model": bool(matched_from) and matched_from == model and matched_from != part_number,
|
|
121
128
|
}
|
|
122
129
|
|
|
123
130
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"""`manage.py eosl_check` — audit your NetBox device types against EOSL.ai.
|
|
2
2
|
|
|
3
|
-
Prints a summary of how many tracked device types
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Prints a summary of how many tracked device types need action, are ending soon, are still
|
|
4
|
+
supported or active, or are not found in the EOSL.ai database, then lists the device types that need
|
|
5
|
+
action (past end-of-service-life, or close enough that EOSL.ai rates the runway as action recommended)
|
|
6
|
+
with how many device instances you run. Read-only; changes nothing in NetBox.
|
|
6
7
|
"""
|
|
7
8
|
from collections import Counter
|
|
8
9
|
|
|
@@ -19,7 +20,7 @@ class Command(BaseCommand):
|
|
|
19
20
|
parser.add_argument(
|
|
20
21
|
"--past-only",
|
|
21
22
|
action="store_true",
|
|
22
|
-
help="Skip the summary; just list device types past end-of-service-life.",
|
|
23
|
+
help="Skip the summary; just list device types that need action (past or near end-of-service-life).",
|
|
23
24
|
)
|
|
24
25
|
|
|
25
26
|
def handle(self, *args, **options):
|
|
@@ -48,12 +49,12 @@ class Command(BaseCommand):
|
|
|
48
49
|
total = sum(counts.values())
|
|
49
50
|
|
|
50
51
|
if not options.get("past_only"):
|
|
51
|
-
self.stdout.write(self.style.MIGRATE_HEADING("EOSL.ai audit
|
|
52
|
+
self.stdout.write(self.style.MIGRATE_HEADING("EOSL.ai audit: {} device types".format(total)))
|
|
52
53
|
label = {
|
|
53
54
|
"risk": "Past / action recommended",
|
|
54
55
|
"watch": "Ending soon (plan/watch)",
|
|
55
56
|
"clear": "Tracked, supported",
|
|
56
|
-
"active": "Active
|
|
57
|
+
"active": "Active, no EOL announced",
|
|
57
58
|
"not_found": "Not found in EOSL.ai",
|
|
58
59
|
"no_part_number": "No part number set",
|
|
59
60
|
}
|
|
@@ -63,22 +64,25 @@ class Command(BaseCommand):
|
|
|
63
64
|
|
|
64
65
|
if past_rows:
|
|
65
66
|
self.stdout.write("")
|
|
66
|
-
|
|
67
|
+
# One heading for both bands: "Action recommended" includes hardware whose last date of
|
|
68
|
+
# support is still ahead, so this list must never be headed "past end-of-service-life".
|
|
69
|
+
self.stdout.write(self.style.WARNING("Needs action (past end-of-service-life, or action recommended):"))
|
|
67
70
|
for dt, rec in sorted(past_rows, key=lambda r: r[1].get("eosl") or ""):
|
|
68
71
|
try:
|
|
69
72
|
instances = dt.instances.count()
|
|
70
73
|
except Exception:
|
|
71
74
|
instances = "?"
|
|
72
75
|
self.stdout.write(
|
|
73
|
-
" {vendor} {model} ({part})
|
|
76
|
+
" {vendor} {model} ({part}): {status}, end of service life {eosl}, {n} in service, {url}".format(
|
|
74
77
|
vendor=rec.get("vendor") or (dt.manufacturer and dt.manufacturer.name) or "",
|
|
75
78
|
model=dt.model,
|
|
76
79
|
part=rec.get("part"),
|
|
77
|
-
|
|
80
|
+
status=rec.get("state_label"),
|
|
81
|
+
eosl=rec.get("eosl") or "not published",
|
|
78
82
|
n=instances,
|
|
79
83
|
url=rec.get("page_url"),
|
|
80
84
|
)
|
|
81
85
|
)
|
|
82
86
|
elif not options.get("past_only"):
|
|
83
87
|
self.stdout.write("")
|
|
84
|
-
self.stdout.write(self.style.SUCCESS("No device types
|
|
88
|
+
self.stdout.write(self.style.SUCCESS("No device types need action."))
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
<div class="card">
|
|
3
3
|
<h2 class="card-header">
|
|
4
4
|
Hardware End-of-Life
|
|
5
|
-
|
|
5
|
+
{# card-actions is NetBox 4.x's header slot; float-end ran the link into the title on 4.7. #}
|
|
6
|
+
<div class="card-actions">
|
|
7
|
+
<a href="https://eosl.ai/" target="_blank" rel="noopener" class="btn btn-ghost-secondary btn-sm" title="Data source: EOSL.ai">EOSL.ai</a>
|
|
8
|
+
</div>
|
|
6
9
|
</h2>
|
|
7
10
|
{% if eosl %}
|
|
8
11
|
<table class="table table-hover attr-table">
|
|
@@ -14,6 +17,12 @@
|
|
|
14
17
|
<th scope="row">Part number</th>
|
|
15
18
|
<td><code>{{ eosl.part }}</code></td>
|
|
16
19
|
</tr>
|
|
20
|
+
{% if eosl.matched_from %}
|
|
21
|
+
<tr>
|
|
22
|
+
<th scope="row">Matched from</th>
|
|
23
|
+
<td><code>{{ eosl.matched_from }}</code> <span class="text-muted">({% if eosl.matched_by_model %}device type model name{% else %}same hardware, different part number form{% endif %})</span></td>
|
|
24
|
+
</tr>
|
|
25
|
+
{% endif %}
|
|
17
26
|
{% if eosl.end_of_sale %}
|
|
18
27
|
<tr>
|
|
19
28
|
<th scope="row">End of sale</th>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: netbox-eosl
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Show source-backed hardware end-of-service-life status on NetBox Devices and Device Types, from EOSL.ai.
|
|
5
5
|
Author-email: "EOSL.ai" <hello@eosl.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -29,9 +29,10 @@ A panel appears on the right side of each Device and Device Type page: end-of-sa
|
|
|
29
29
|
end-of-service-life date, the Support Runway Score, a link to the vendor bulletin, and a link to
|
|
30
30
|
the full EOSL.ai model page. A `manage.py eosl_check` command audits your whole inventory.
|
|
31
31
|
|
|
32
|
-
Matching is
|
|
33
|
-
|
|
34
|
-
offers a search link instead of
|
|
32
|
+
Matching is deterministic and never fuzzy, so the plugin can't put a wrong end-of-life date on the
|
|
33
|
+
wrong device. When it resolves a vendor short code or packaging variant, the panel shows what it
|
|
34
|
+
matched from. If a part number isn't in the database, it says so and offers a search link instead of
|
|
35
|
+
guessing.
|
|
35
36
|
|
|
36
37
|
## Requirements
|
|
37
38
|
|
|
@@ -90,26 +91,28 @@ python /opt/netbox/netbox/manage.py eosl_check
|
|
|
90
91
|
```
|
|
91
92
|
|
|
92
93
|
```
|
|
93
|
-
EOSL.ai audit
|
|
94
|
+
EOSL.ai audit: 214 device types
|
|
94
95
|
Past / action recommended: 57
|
|
95
96
|
Ending soon (plan/watch): 18
|
|
96
97
|
Tracked, supported: 44
|
|
97
|
-
Active
|
|
98
|
+
Active, no EOL announced: 9
|
|
98
99
|
Not found in EOSL.ai: 79
|
|
99
100
|
No part number set: 7
|
|
100
101
|
|
|
101
|
-
|
|
102
|
-
Cisco Catalyst 3850-48P (WS-C3850-48P-S)
|
|
102
|
+
Needs action (past end-of-service-life, or action recommended):
|
|
103
|
+
Cisco Catalyst 3850-48P (WS-C3850-48P-S): Little or no runway, end of service life 2025-10, 12 in service, https://eosl.ai/system/cisco-catalyst-3850/
|
|
104
|
+
Fortinet FortiGate 60E (FortiGate-60E): Action recommended, end of service life 2026-12, 3 in service, https://eosl.ai/system/fortinet-fortigate-60e/
|
|
103
105
|
...
|
|
104
106
|
```
|
|
105
107
|
|
|
106
|
-
|
|
108
|
+
"Action recommended" includes hardware whose last date of support is still ahead, so each line
|
|
109
|
+
carries its status and date. Use `--past-only` to print just that list (handy in a cron/report).
|
|
107
110
|
|
|
108
111
|
## How matching works
|
|
109
112
|
|
|
110
113
|
The plugin downloads `https://eosl.ai/data/lookup.json` (the same part-number → status map that
|
|
111
114
|
powers the eosl.ai bulk checker) and caches it. For each Device Type it resolves the `part_number`
|
|
112
|
-
field (a Device inherits it from its Device Type) in
|
|
115
|
+
field (a Device inherits it from its Device Type) in deterministic, conservative steps:
|
|
113
116
|
|
|
114
117
|
1. **Exact** match (case-insensitive).
|
|
115
118
|
2. **Loose** match — ignores spaces/dashes/case, so `FortiGate 60E` resolves `FortiGate-60E`.
|
|
@@ -117,6 +120,13 @@ field (a Device inherits it from its Device Type) in three deterministic, conser
|
|
|
117
120
|
but **only when the NetBox manufacturer matches that vendor**. E.g. a Fortinet `FG-60E` resolves
|
|
118
121
|
`FortiGate-60E`, `FS-148E` → `FortiSwitch-148E`, `FAP-221E` → `FortiAP-221E`. The vendor gate means
|
|
119
122
|
a non-Fortinet `FG-…` can never be mis-resolved onto a Fortinet record.
|
|
123
|
+
4. **Variant aliases** from `https://eosl.ai/data/aliases.json`: packaging forms of the same hardware,
|
|
124
|
+
such as Juniper `EX4300-48T-TAA` or Cisco `ASA5506`. EOSL.ai admits an alias only when every record
|
|
125
|
+
it could mean has the same vendor and the same dates; short keys and keys shared across vendors
|
|
126
|
+
resolve only when the NetBox manufacturer names the vendor. The file is optional: if it cannot be
|
|
127
|
+
fetched, matching runs without it.
|
|
128
|
+
5. If the part number finds nothing, the device type's **model name** is tried with the same rules
|
|
129
|
+
(NetBox's device-type library leaves some part numbers blank, e.g. Dell "PowerEdge R730").
|
|
120
130
|
|
|
121
131
|
There is **no fuzzy or substring matching**. No part number, or no confident match → a neutral
|
|
122
132
|
"not tracked" panel with a search link. Nothing is inferred.
|
|
@@ -130,7 +140,7 @@ The matching logic lives in `netbox_eosl/matching.py` (no Django imports) and is
|
|
|
130
140
|
for verification. Where a vendor publishes no per-model EOSL date, EOSL.ai computes it from the
|
|
131
141
|
vendor's published support-life policy and labels it "computed".
|
|
132
142
|
- This plugin **reads** public data; it sends none of your inventory anywhere. The only outbound
|
|
133
|
-
|
|
143
|
+
requests fetch the public lookup table and the alias file.
|
|
134
144
|
- Confirm any critical date against the linked vendor bulletin before a purchase, renewal, or
|
|
135
145
|
migration decision.
|
|
136
146
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "netbox-eosl"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "Show source-backed hardware end-of-service-life status on NetBox Devices and Device Types, from EOSL.ai."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|