From fa08e53b150d83bd58aa21e56c515b52d87b5501 Mon Sep 17 00:00:00 2001 From: Nick Todd Date: Mon, 12 Feb 2024 17:01:53 +0000 Subject: [PATCH 1/3] 2297: Convert NTP Client and Server to UDP --- src/primaite/simulator/system/services/ntp/ntp_client.py | 2 +- src/primaite/simulator/system/services/ntp/ntp_server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/primaite/simulator/system/services/ntp/ntp_client.py b/src/primaite/simulator/system/services/ntp/ntp_client.py index ddd794ae..43d1d783 100644 --- a/src/primaite/simulator/system/services/ntp/ntp_client.py +++ b/src/primaite/simulator/system/services/ntp/ntp_client.py @@ -21,7 +21,7 @@ class NTPClient(Service): def __init__(self, **kwargs): kwargs["name"] = "NTPClient" kwargs["port"] = Port.NTP - kwargs["protocol"] = IPProtocol.TCP + kwargs["protocol"] = IPProtocol.UDP super().__init__(**kwargs) self.start() diff --git a/src/primaite/simulator/system/services/ntp/ntp_server.py b/src/primaite/simulator/system/services/ntp/ntp_server.py index 3987fa2c..3ae80936 100644 --- a/src/primaite/simulator/system/services/ntp/ntp_server.py +++ b/src/primaite/simulator/system/services/ntp/ntp_server.py @@ -16,7 +16,7 @@ class NTPServer(Service): def __init__(self, **kwargs): kwargs["name"] = "NTPServer" kwargs["port"] = Port.NTP - kwargs["protocol"] = IPProtocol.TCP + kwargs["protocol"] = IPProtocol.UDP super().__init__(**kwargs) self.start() From 697e53def8881620e67a2564df8da713c8ed8784 Mon Sep 17 00:00:00 2001 From: Nick Todd Date: Mon, 12 Feb 2024 17:12:59 +0000 Subject: [PATCH 2/3] 2297: Doc update. --- docs/source/simulation_components/system/ntp_client_server.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/simulation_components/system/ntp_client_server.rst b/docs/source/simulation_components/system/ntp_client_server.rst index 671126fb..2d49f34e 100644 --- a/docs/source/simulation_components/system/ntp_client_server.rst +++ b/docs/source/simulation_components/system/ntp_client_server.rst @@ -44,7 +44,7 @@ Usage ^^^^^ - Install on a Node via the ``SoftwareManager`` to start the database service. -- Service runs on TCP port 123 by default. +- Service runs on UDP port 123 by default. Implementation ^^^^^^^^^^^^^^ From 4c66d2b2524fbe7cf4cef51302dab3f5cd168d30 Mon Sep 17 00:00:00 2001 From: Nick Todd Date: Mon, 12 Feb 2024 17:24:28 +0000 Subject: [PATCH 3/3] 2297: Change missed reference TCP to UDP. --- docs/source/simulation_components/system/ntp_client_server.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/simulation_components/system/ntp_client_server.rst b/docs/source/simulation_components/system/ntp_client_server.rst index 2d49f34e..b6d57c13 100644 --- a/docs/source/simulation_components/system/ntp_client_server.rst +++ b/docs/source/simulation_components/system/ntp_client_server.rst @@ -22,7 +22,7 @@ Key capabilities Usage ^^^^^ - Install on a Node via the ``SoftwareManager`` to start the database service. -- Service runs on TCP port 123 by default. +- Service runs on UDP port 123 by default. Implementation ^^^^^^^^^^^^^^