feat: Fingerprint-Attribute für Discovery-Scoring
Ergänzt DRIVER_NAME, HTTP_FINGERPRINT, SNMP_FINGERPRINT, SSH_FINGERPRINT, PORT_SPECS und SNMP_OBJECT_ID_PREFIX gemäß docs/DISCOVERY_FINGERPRINTING.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
08d02d285a
commit
243e66a893
@@ -34,7 +34,7 @@ from typing import Any
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
from napalm_device_types import HypervisorDriver
|
from napalm_device_types import FingerprintRule, HypervisorDriver, PortSpec
|
||||||
from napalm.base.exceptions import ConnectionException
|
from napalm.base.exceptions import ConnectionException
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -74,6 +74,19 @@ class ProxmoxDriver(
|
|||||||
):
|
):
|
||||||
"""NAPALM driver for Proxmox VE nodes."""
|
"""NAPALM driver for Proxmox VE nodes."""
|
||||||
|
|
||||||
|
VENDOR = "Proxmox"
|
||||||
|
DRIVER_NAME = "proxmox"
|
||||||
|
PORT_SPECS = [
|
||||||
|
PortSpec("https", 8006, weight=8.0),
|
||||||
|
]
|
||||||
|
SSH_FINGERPRINT = [
|
||||||
|
FingerprintRule("debian", weight=3.0),
|
||||||
|
]
|
||||||
|
HTTP_FINGERPRINT = [
|
||||||
|
FingerprintRule("proxmox virtual environment", weight=9.0, mandatory=True),
|
||||||
|
FingerprintRule("proxmox", weight=5.0),
|
||||||
|
FingerprintRule("pve", weight=2.0),
|
||||||
|
]
|
||||||
platform = "proxmox"
|
platform = "proxmox"
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
|
|||||||
Reference in New Issue
Block a user