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
629822c055
commit
e3c36a1d34
@@ -46,7 +46,7 @@ logger = logging.getLogger(__name__)
|
|||||||
import requests
|
import requests
|
||||||
from requests.exceptions import RequestException
|
from requests.exceptions import RequestException
|
||||||
|
|
||||||
from napalm_device_types import FirewallDriver
|
from napalm_device_types import FingerprintRule, FirewallDriver
|
||||||
from napalm.base.exceptions import ConnectionException, ConnectionClosedException, MergeConfigException
|
from napalm.base.exceptions import ConnectionException, ConnectionClosedException, MergeConfigException
|
||||||
|
|
||||||
|
|
||||||
@@ -54,6 +54,16 @@ class OPNsenseDriver(FirewallDriver):
|
|||||||
"""NAPALM driver for OPNsense (read-only, REST API)."""
|
"""NAPALM driver for OPNsense (read-only, REST API)."""
|
||||||
|
|
||||||
VENDOR = "OPNsense"
|
VENDOR = "OPNsense"
|
||||||
|
DRIVER_NAME = "opnsense"
|
||||||
|
SNMP_FINGERPRINT = [
|
||||||
|
FingerprintRule("opnsense", weight=8.0, mandatory=True),
|
||||||
|
]
|
||||||
|
SSH_FINGERPRINT = [
|
||||||
|
FingerprintRule("freebsd", weight=7.0),
|
||||||
|
]
|
||||||
|
HTTP_FINGERPRINT = [
|
||||||
|
FingerprintRule("opnsense", weight=8.0, mandatory=True),
|
||||||
|
]
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user