From 24dc2a82b5c82651c5c5925669c35ef4e5ceadf4 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 12 Jul 2019 08:37:46 +0200 Subject: [PATCH] Insight. missing decode() when parsing ifconfig output leading to unexpected results. sqlite seems to store the binary in a varchar element, which looks right, but you can't compare it in your where statements. This doesn't seem to lead to issues when there is already valid content in the timeserie table. --- src/opnsense/scripts/netflow/lib/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/scripts/netflow/lib/parse.py b/src/opnsense/scripts/netflow/lib/parse.py index 057a64005..a38ab1caa 100755 --- a/src/opnsense/scripts/netflow/lib/parse.py +++ b/src/opnsense/scripts/netflow/lib/parse.py @@ -45,7 +45,7 @@ class Interfaces(object): output_stream.seek(0) if_index = 1 for line in output_stream.readline().split(): - self._if_index["%s" % if_index] = line + self._if_index["%s" % if_index] = line.decode() if_index += 1 def if_device(self, if_index):