aboutsummaryrefslogtreecommitdiffstats
path: root/netmodel/interfaces/process/__init__.py
diff options
context:
space:
mode:
authorMarcel Enguehard <mengueha+fdio@cisco.com>2017-10-09 08:44:59 +0200
committerMarcel Enguehard <mengueha+fdio@cisco.com>2017-10-09 08:55:46 +0200
commit5f8867a3454164ad20ae427dc9d2c7d65ea00a90 (patch)
treec8ff40fb147a76af2baa77790ba8a6ac968e51b4 /netmodel/interfaces/process/__init__.py
parentaf2dd545d04cfca7e7ec066035abf78c3d541915 (diff)
Several fixes related to async_set, ip addressing, and memif interfaces for VPP
Change-Id: I26b7928751f41ea66ba47bb1becac33cf5195915 Signed-off-by: Marcel Enguehard <mengueha+fdio@cisco.com>
Diffstat (limited to 'netmodel/interfaces/process/__init__.py')
-rw-r--r--netmodel/interfaces/process/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/netmodel/interfaces/process/__init__.py b/netmodel/interfaces/process/__init__.py
index 59bf6f9f..9f3d3c11 100644
--- a/netmodel/interfaces/process/__init__.py
+++ b/netmodel/interfaces/process/__init__.py
@@ -90,7 +90,7 @@ class BWMThread(Process):
if line:
record = self._parse_line(line.strip())
# We use 'total' to push the statistics back to VICN
- if record['iface_name'] == 'total':
+ if record.get('iface_name') == 'total':
for interfaces in self.groups_of_interfaces:
if not len(interfaces) > 1:
# If the tuple contains only one interface, grab