From 0741e3953e537a27b600f08d966f3a241aeb7ed9 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 26 Sep 2017 12:07:09 -0400 Subject: [PATCH] List switches if known even without macs The macs was only showing switches with currently known mac address. Provide all the data (and perhaps a hook to geet errors later). --- confluent_server/confluent/networking/macmap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/confluent_server/confluent/networking/macmap.py b/confluent_server/confluent/networking/macmap.py index 441b2d38..a0b385b6 100644 --- a/confluent_server/confluent/networking/macmap.py +++ b/confluent_server/confluent/networking/macmap.py @@ -416,8 +416,7 @@ def handle_read_api_request(pathcomponents): elif pathcomponents[2] == 'by-switch': if len(pathcomponents) == 3: return [msg.ChildCollection(x + '/') - for x in sorted(list(_macsbyswitch))] - + for x in sorted(list(_switchportmap))] if len(pathcomponents) == 4: return [msg.ChildCollection('by-port/')] if len(pathcomponents) == 5: