From 0d93d967a6ddaba43a587a999c149ce98ad027a8 Mon Sep 17 00:00:00 2001 From: Cedric Paillet Date: Mon, 17 Jun 2024 16:56:26 +0200 Subject: [PATCH] (feat) Add Name to SNMPCommunityReadSerializer To include a string index in the ietf_snmp YANG model, we have added the community 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):