Files
netbox-librenms-plugin/netbox_librenms_plugin/api/serializers.py
Vlastislav Svatek 673e67106e
Some checks failed
ci / deploy (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
first commit
2026-06-05 10:39:05 +02:00

14 lines
452 B
Python

from netbox.api.serializers import NetBoxModelSerializer
from netbox_librenms_plugin.models import InterfaceTypeMapping
class InterfaceTypeMappingSerializer(NetBoxModelSerializer):
"""Serialize InterfaceTypeMapping model for REST API."""
class Meta:
"""Meta options for InterfaceTypeMappingSerializer."""
model = InterfaceTypeMapping
fields = ["id", "librenms_type", "librenms_speed", "netbox_type", "description"]