Skip host key if only one MAC.
@@ -264,6 +264,10 @@ class HostBase:
mac_rows = []
for i, mac in enumerate(all_unicast_macs, start=1):
mac_df = df[(df['eth.src'] == mac)|(df['eth.dst'] == mac)]
+ # If just one MAC, don't need groupby on host key.
+ if len(all_unicast_macs) == 1:
+ mac_rows.append(self._calc_mac_row(mac, mac_df))
+ else:
s = 0
for _, key_df in mac_df.groupby('_host_key'):
s += 1
