diff options
author | Håkon Solbjørg <hakon@solbj.org> | 2023-02-25 13:32:37 +0100 |
---|---|---|
committer | Håkon Solbjørg <hakon@solbj.org> | 2023-02-25 13:32:37 +0100 |
commit | ee3c52962055dac3b089a917707f54ce4a640177 (patch) | |
tree | e0d05c6e8ebcdd32ab753fca498e60e284bf5a6f | |
parent | 848f7e1bfd462bf867103eff3cce57609ff70cb8 (diff) |
fix(koblingsplan): Assume lowercase cable name is valid
-rw-r--r-- | tools/koblingsplan/koblingsplan-to-netbox.py | 2 |
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']}") |