Change-Id: I09d1f1180b0e80a34a0eec1acf4a1681b15d3e34
Signed-off-by: Yichen Wang <yicwang@cisco.com>
devices = ''
for driver in ['i40e', 'ixgbe']:
devices = ''
for driver in ['i40e', 'ixgbe']:
- matches = re.findall(regex.format(hx=hx, driver=driver), devices)
+ matches = re.findall(regex.format(hx=hx, driver=driver), devices.decode("utf-8"))
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
intf_info, _ = process.communicate()
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
intf_info, _ = process.communicate()
- if not re.search('team_slave|bond_slave', intf_info):
+ if not re.search('team_slave|bond_slave', intf_info.decode("utf-8")):