From 0481f7889b9da3af54452a0d0a55ea1faa18a398 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 20 Apr 2018 13:25:02 -0400 Subject: [PATCH] Make macmap api case insensitive This helps usability of the api. --- confluent_server/confluent/networking/macmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/networking/macmap.py b/confluent_server/confluent/networking/macmap.py index 652b4dde..69d4e3b3 100644 --- a/confluent_server/confluent/networking/macmap.py +++ b/confluent_server/confluent/networking/macmap.py @@ -462,7 +462,7 @@ def handle_read_api_request(pathcomponents, configmanager): def dump_macinfo(macaddr): - macaddr = macaddr.replace('-', ':') + macaddr = macaddr.replace('-', ':').lower() info = _macmap.get(macaddr, None) if info is None: raise exc.NotFoundException(