From f0c22a881d242697ee63e60898efa539c26fdd8a Mon Sep 17 00:00:00 2001 From: gdprdatasubect <101808236+gdprdatasubect@users.noreply.github.com> Date: Mon, 27 Mar 2023 13:49:34 +0200 Subject: [PATCH] Create export-rearports-for-adding-details.txt Why? We use Label and description of rear ports to mark in where which room a port ends. After adding the information it can be reimported again thanks to the recently added edit functionality. Example: id,name,description,label 1337,1,Wallmounted,R4711 1338,1,In Ceiling ,Floor 0815 --- .../export-rearports-for-adding-details.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 export_templates/export-rearports-for-adding-details.txt diff --git a/export_templates/export-rearports-for-adding-details.txt b/export_templates/export-rearports-for-adding-details.txt new file mode 100644 index 0000000..af4b609 --- /dev/null +++ b/export_templates/export-rearports-for-adding-details.txt @@ -0,0 +1,11 @@ +##Why? We use Label and description of rear ports to mark in where which room a port ends. +##After adding the information it can be reimported again thanks to the recently added edit functionality. + +{%- for device in queryset %} +################################## +###Rearports of "{{device.name}}" @ Rack {{device.rack}} - {{device.location}} in {{device.site}} +###Description: More Information (Wall/Floor mounted etc.),Label = Room Number +id,name,description,label +{%- for rearport in device.rearports.all() %} +{{rearport.id}},{{rearport.name}},{{rearport.description}},{{rearport.label}} +{%- endfor %}{%- endfor %}