From 4a28ab98f49d3b7622b8bc0109f5a09069848306 Mon Sep 17 00:00:00 2001 From: adionit7 Date: Wed, 21 Jan 2026 22:53:03 +0530 Subject: [PATCH] Fixes #21115: Include attribute_data in ModuleType YAML export - Added airflow and attribute_data fields to ModuleType.to_yaml() method - Ensures custom JSON properties from module type profiles are properly exported - Maintains consistency with import functionality in ModuleTypeImportForm --- netbox/dcim/models/modules.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netbox/dcim/models/modules.py b/netbox/dcim/models/modules.py index 97ffeccbe..8330d9f26 100644 --- a/netbox/dcim/models/modules.py +++ b/netbox/dcim/models/modules.py @@ -155,6 +155,8 @@ class ModuleType(ImageAttachmentsMixin, PrimaryModel, WeightMixin): 'description': self.description, 'weight': float(self.weight) if self.weight is not None else None, 'weight_unit': self.weight_unit, + 'airflow': self.airflow, + 'attribute_data': self.attribute_data, 'comments': self.comments, }