From ee3c52962055dac3b089a917707f54ce4a640177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Solbj=C3=B8rg?= Date: Sat, 25 Feb 2023 13:32:37 +0100 Subject: fix(koblingsplan): Assume lowercase cable name is valid --- tools/koblingsplan/koblingsplan-to-netbox.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/koblingsplan/koblingsplan-to-netbox.py') 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']}") -- cgit v1.2.3