aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
diff options
context:
space:
mode:
Diffstat (limited to 'resources/libraries/python')
-rw-r--r--resources/libraries/python/VatJsonUtil.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/resources/libraries/python/VatJsonUtil.py b/resources/libraries/python/VatJsonUtil.py
index 8414838715..ef92a24f07 100644
--- a/resources/libraries/python/VatJsonUtil.py
+++ b/resources/libraries/python/VatJsonUtil.py
@@ -97,6 +97,7 @@ class VatJsonUtil(object):
if not interface_dict:
logger.trace('Interface {0} not found by MAC {1}'
.format(ifc, if_mac))
+ ifc['vpp_sw_index'] = None
continue
ifc['name'] = interface_dict["interface_name"]
ifc['vpp_sw_index'] = interface_dict["sw_if_index"]