From c0875c19746edb63a9c82659c89cdedb69ced5a6 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Thu, 29 Sep 2016 07:50:52 -0400 Subject: [PATCH] Fixed a bug where packets already seen get digipeated again. Issue: #23 --- src/apex/plugins/apexparadigm/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apex/plugins/apexparadigm/__init__.py b/src/apex/plugins/apexparadigm/__init__.py index 18e4c4b..128c625 100644 --- a/src/apex/plugins/apexparadigm/__init__.py +++ b/src/apex/plugins/apexparadigm/__init__.py @@ -47,8 +47,9 @@ class ApexParadigmPlugin(object): # can't digipeat things we already digipeated. for hop in frame['path']: - if hop.startswith('WI2ARD') and hop.endswith('*'): - return + for port in self.port_map.values(): + if hop.startswith(port['identifier']) and hop.endswith('*'): + return for hop_index in range(0, len(frame['path'])): hop = frame['path'][hop_index] -- GitLab