From c5b1a6162353ae2cebe810c267a8ce4cce472238 Mon Sep 17 00:00:00 2001 From: Cedric Paillet Date: Mon, 17 Jun 2024 16:56:26 +0200 Subject: [PATCH] feat(snmp): add name to SNMPCommunityReadSerializer Include a string index in the ietf_snmp YANG model by adding the name to the cmdb/snmp output. --- netbox_cmdb/netbox_cmdb/api/snmp/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_cmdb/netbox_cmdb/api/snmp/serializers.py b/netbox_cmdb/netbox_cmdb/api/snmp/serializers.py index 1fd4b24..4a7af1a 100644 --- a/netbox_cmdb/netbox_cmdb/api/snmp/serializers.py +++ b/netbox_cmdb/netbox_cmdb/api/snmp/serializers.py @@ -17,7 +17,7 @@ class SNMPCommunityReadSerializer(ModelSerializer): class Meta: model = SNMPCommunity - fields = ["community", "type"] + fields = ["name", "community", "type"] class SNMPReadSerializer(ModelSerializer):