aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHåkon Solbjørg <hakon@solbj.org>2023-02-25 13:32:37 +0100
committerHåkon Solbjørg <hakon@solbj.org>2023-02-25 13:32:37 +0100
commitee3c52962055dac3b089a917707f54ce4a640177 (patch)
treee0d05c6e8ebcdd32ab753fca498e60e284bf5a6f
parent848f7e1bfd462bf867103eff3cce57609ff70cb8 (diff)
fix(koblingsplan): Assume lowercase cable name is valid
-rw-r--r--tools/koblingsplan/koblingsplan-to-netbox.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/koblingsplan/koblingsplan-to-netbox.py b/tools/koblingsplan/koblingsplan-to-netbox.py
index 48c1c24..3b3ee52 100644
--- a/tools/koblingsplan/koblingsplan-to-netbox.py
+++ b/tools/koblingsplan/koblingsplan-to-netbox.py
@@ -79,6 +79,8 @@ def get_or_create_cabling(cabling):
cable_type = kobling['cable_type']
if cable_type == 'Singlemode LC':
cable_type = 'smf'
+ else:
+ cable_type = cable_type.lower()
print(f"🔌 Planning cable A<->B: {a['node']} {a['interface']}<->{b['interface']} {b['node']}")