#3075: Fix notebooks after test changes.
This commit is contained in:
@@ -1632,7 +1632,9 @@ class Node(SimComponent, ABC):
|
||||
dns_server=kwargs["config"].dns_server,
|
||||
)
|
||||
super().__init__(**kwargs)
|
||||
self.operating_state = NodeOperatingState.ON if not (p := kwargs["config"].operating_state) else p
|
||||
self.operating_state = (
|
||||
NodeOperatingState.ON if not (p := kwargs["config"].operating_state) else NodeOperatingState[p.upper()]
|
||||
)
|
||||
self._install_system_software()
|
||||
self.session_manager.node = self
|
||||
self.session_manager.software_manager = self.software_manager
|
||||
|
||||
@@ -313,7 +313,7 @@ class HostNode(Node, discriminator="host-node"):
|
||||
"""
|
||||
|
||||
SYSTEM_SOFTWARE: ClassVar[Dict] = {
|
||||
"HostARP": HostARP,
|
||||
"host-arp": HostARP,
|
||||
"icmp": ICMP,
|
||||
"dns-client": DNSClient,
|
||||
"ntp-client": NTPClient,
|
||||
|
||||
Reference in New Issue
Block a user