From 509afd4d05352ee174426308aee03e9424f29d01 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 17 Jun 2021 01:52:58 -0400 Subject: [PATCH] Add hostdev net_type to handler as well --- daemon-common/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon-common/common.py b/daemon-common/common.py index b9c0e38d..f26f1966 100644 --- a/daemon-common/common.py +++ b/daemon-common/common.py @@ -397,7 +397,7 @@ def getDomainNetworks(parsed_xml, stats_data): net_wr_packets = net_stats.get('wr_packets', 0) net_wr_errors = net_stats.get('wr_errors', 0) net_wr_drops = net_stats.get('wr_drops', 0) - if net_type in ['direct']: + if net_type in ['direct', 'hostdev']: net_vni = device.source.attrib.get('dev') else: net_vni = re_match(r'[vm]*br([0-9a-z]+)', net_bridge).group(1)