From 15a28e61234c9b82dda527596042dfac5be960da Mon Sep 17 00:00:00 2001
From: Robert Latta <robert.latta@geant.org>
Date: Tue, 23 Jul 2019 16:23:42 +0000
Subject: [PATCH] Removed redundant lines

---
 inventory_provider/routes/classifier.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/inventory_provider/routes/classifier.py b/inventory_provider/routes/classifier.py
index fae04385..c8c36c5e 100644
--- a/inventory_provider/routes/classifier.py
+++ b/inventory_provider/routes/classifier.py
@@ -161,7 +161,6 @@ def ix_peering_info(peer_info):
     description = peer_info['description']
     assert description is not None  # sanity
 
-    protocol = type(address).__name__
     keyword = description.split(' ')[0]  # regex needed??? (e.g. tabs???)
 
     r = common.get_current_redis()
@@ -170,8 +169,6 @@ def ix_peering_info(peer_info):
         other = r.get(k.decode('utf-8')).decode('utf-8')
         other = json.loads(other)
 
-        peer_address = ipaddress.ip_address(other['name'])
-
         if other['router'] == peer_info['router']:
             result['router'].append(other['name'])
 
-- 
GitLab