2676 - make ntwk intf use default nmne config

This commit is contained in:
Marek Wolan
2024-07-31 15:25:02 +01:00
parent 9bf8d0f8cb
commit bd1e23db7d

View File

@@ -99,7 +99,7 @@ class NetworkInterface(SimComponent, ABC):
pcap: Optional[PacketCapture] = None pcap: Optional[PacketCapture] = None
"A PacketCapture instance for capturing and analysing packets passing through this interface." "A PacketCapture instance for capturing and analysing packets passing through this interface."
nmne_config: ClassVar[NMNEConfig] = None nmne_config: ClassVar[NMNEConfig] = NMNEConfig()
"A dataclass defining malicious network events to be captured." "A dataclass defining malicious network events to be captured."
nmne: Dict = Field(default_factory=lambda: {}) nmne: Dict = Field(default_factory=lambda: {})
@@ -1167,7 +1167,7 @@ class Node(SimComponent):
ip_address, ip_address,
network_interface.speed, network_interface.speed,
"Enabled" if network_interface.enabled else "Disabled", "Enabled" if network_interface.enabled else "Disabled",
network_interface.nmne if self.nmne_config.capture_nmne else "Disabled", network_interface.nmne if network_interface.nmne_config.capture_nmne else "Disabled",
] ]
) )
print(table) print(table)