Skip to content

Commit e3a9d0e

Browse files
authored
feat: add support for NetBox v4.4 (#132)
Signed-off-by: Michal Fiedorowicz <[email protected]>
1 parent 8e06e6d commit e3a9d0e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ at [https://netboxlabs.com/blog/introducing-diode-streamlining-data-ingestion-in
1919
| >= 4.2.3 | 1.0.0 |
2020
| >= 4.2.3 | 1.1.0 |
2121
| >= 4.2.3 | 1.2.0 |
22+
| >= 4.4.0 | 1.4.0 |
2223

2324
## Installation
2425

netbox_diode_plugin/api/plugin_utils.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Diode plugin helpers."""
22

33
# Generated code. DO NOT EDIT.
4-
# Timestamp: 2025-07-23 01:46:44Z
4+
# Timestamp: 2025-10-02 12:39:10Z
55

66
from dataclasses import dataclass
77
import datetime
@@ -333,6 +333,7 @@ class RefInfo:
333333
},
334334
'dcim.platform': {
335335
'manufacturer': RefInfo(object_type='dcim.manufacturer', field_name='manufacturer'),
336+
'parent': RefInfo(object_type='dcim.platform', field_name='parent'),
336337
'tags': RefInfo(object_type='extras.tag', field_name='tags', is_many=True),
337338
},
338339
'dcim.powerfeed': {
@@ -1143,13 +1144,13 @@ def get_json_ref_info(object_type: str|Type[models.Model], json_field_name: str)
11431144
'dcim.modulebay': frozenset(['custom_fields', 'description', 'device', 'installed_module', 'label', 'module', 'name', 'position', 'tags']),
11441145
'dcim.moduletype': frozenset(['airflow', 'attributes', 'comments', 'custom_fields', 'description', 'manufacturer', 'model', 'part_number', 'profile', 'tags', 'weight', 'weight_unit']),
11451146
'dcim.moduletypeprofile': frozenset(['comments', 'custom_fields', 'description', 'name', 'schema', 'tags']),
1146-
'dcim.platform': frozenset(['custom_fields', 'description', 'manufacturer', 'name', 'slug', 'tags']),
1147+
'dcim.platform': frozenset(['comments', 'custom_fields', 'description', 'manufacturer', 'name', 'parent', 'slug', 'tags']),
11471148
'dcim.powerfeed': frozenset(['amperage', 'comments', 'custom_fields', 'description', 'mark_connected', 'max_utilization', 'name', 'phase', 'power_panel', 'rack', 'status', 'supply', 'tags', 'tenant', 'type', 'voltage']),
11481149
'dcim.poweroutlet': frozenset(['color', 'custom_fields', 'description', 'device', 'feed_leg', 'label', 'mark_connected', 'module', 'name', 'power_port', 'status', 'tags', 'type']),
11491150
'dcim.powerpanel': frozenset(['comments', 'custom_fields', 'description', 'location', 'name', 'site', 'tags']),
11501151
'dcim.powerport': frozenset(['allocated_draw', 'custom_fields', 'description', 'device', 'label', 'mark_connected', 'maximum_draw', 'module', 'name', 'tags', 'type']),
11511152
'dcim.rack': frozenset(['airflow', 'asset_tag', 'comments', 'custom_fields', 'desc_units', 'description', 'facility_id', 'form_factor', 'location', 'max_weight', 'mounting_depth', 'name', 'outer_depth', 'outer_height', 'outer_unit', 'outer_width', 'rack_type', 'role', 'serial', 'site', 'starting_unit', 'status', 'tags', 'tenant', 'u_height', 'weight', 'weight_unit', 'width']),
1152-
'dcim.rackreservation': frozenset(['comments', 'custom_fields', 'description', 'rack', 'tags', 'tenant', 'units']),
1153+
'dcim.rackreservation': frozenset(['comments', 'custom_fields', 'description', 'rack', 'status', 'tags', 'tenant', 'units']),
11531154
'dcim.rackrole': frozenset(['color', 'custom_fields', 'description', 'name', 'slug', 'tags']),
11541155
'dcim.racktype': frozenset(['comments', 'custom_fields', 'desc_units', 'description', 'form_factor', 'manufacturer', 'max_weight', 'model', 'mounting_depth', 'outer_depth', 'outer_height', 'outer_unit', 'outer_width', 'slug', 'starting_unit', 'tags', 'u_height', 'weight', 'weight_unit', 'width']),
11551156
'dcim.rearport': frozenset(['color', 'custom_fields', 'description', 'device', 'label', 'mark_connected', 'module', 'name', 'positions', 'tags', 'type']),
@@ -1387,8 +1388,8 @@ def wrapper(value):
13871388
'object_types': for_all(None, True, False),
13881389
'related_object_filter': parse_json,
13891390
'search_weight': int_from_int64string,
1390-
'validation_maximum': int_from_int64string,
1391-
'validation_minimum': int_from_int64string,
1391+
'validation_maximum': transform_float_to_decimal,
1392+
'validation_minimum': transform_float_to_decimal,
13921393
'weight': int_from_int64string,
13931394
},
13941395
'extras.customfieldchoiceset': {

0 commit comments

Comments
 (0)