From 6726a2da3789c6f14f17f4179af7a13ba8f13d26 Mon Sep 17 00:00:00 2001 From: Nick Todd Date: Mon, 22 Apr 2024 14:09:12 +0100 Subject: [PATCH] #2245: Add comment --- src/primaite/game/agent/observations/host_observations.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/primaite/game/agent/observations/host_observations.py b/src/primaite/game/agent/observations/host_observations.py index c9c73e16..02c0d17f 100644 --- a/src/primaite/game/agent/observations/host_observations.py +++ b/src/primaite/game/agent/observations/host_observations.py @@ -227,6 +227,8 @@ class HostObservation(AbstractObservation, identifier="HOST"): applications = [ApplicationObservation.from_config(config=c, parent_where=where) for c in config.applications] folders = [FolderObservation.from_config(config=c, parent_where=where) for c in config.folders] nics = [NICObservation.from_config(config=c, parent_where=where) for c in config.network_interfaces] + # If list of network interfaces is not defined, assume we want to + # monitor the first N interfaces. Network interface numbering starts at 1. count = 1 while len(nics) < config.num_nics: nic_config = NICObservation.ConfigSchema(nic_num=count, include_nmne=config.include_nmne)