summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-20 22:28:13 +0200
committerChristian Breunig <christian@breunig.cc>2024-09-21 08:51:28 +0200
commit917c658e37b619b1b2cd261ae43dd02f11eef720 (patch)
treef4e88762fc20a264c34103dd282b0b188f3a0beb /smoketest
parent90ab441a55b2ec769e7a6fea1dd57bef89b8857c (diff)
downloadvyos-1x-917c658e37b619b1b2cd261ae43dd02f11eef720.tar.gz
vyos-1x-917c658e37b619b1b2cd261ae43dd02f11eef720.zip
T6630: ntp: move interface timestamping configuration under ptp node
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_service_ntp.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/smoketest/scripts/cli/test_service_ntp.py b/smoketest/scripts/cli/test_service_ntp.py
index 02435bbfb..07af4f5eb 100755
--- a/smoketest/scripts/cli/test_service_ntp.py
+++ b/smoketest/scripts/cli/test_service_ntp.py
@@ -171,7 +171,6 @@ class TestSystemNTP(VyOSUnitTestSHIM.TestCase):
# name is not a 1:1 mapping from VyOS config
servers = ['192.0.2.1', '192.0.2.2']
options = ['prefer']
- offload_interface = 'eth0'
for server in servers:
for option in options:
@@ -198,13 +197,13 @@ class TestSystemNTP(VyOSUnitTestSHIM.TestCase):
def test_offload_timestamp_default(self):
# Test offloading of NIC timestamp
servers = ['192.0.2.1', '192.0.2.2']
- options = ['prefer']
+ ptp_port = '8319'
for server in servers:
- for option in options:
- self.cli_set(base_path + ['server', server, option])
+ self.cli_set(base_path + ['server', server, 'ptp'])
- self.cli_set(base_path + ['offload', 'timestamp', 'default-enable'])
+ self.cli_set(base_path + ['ptp', 'port', ptp_port])
+ self.cli_set(base_path + ['ptp', 'timestamp', 'interface', 'all'])
# commit changes
self.cli_commit()
@@ -221,7 +220,7 @@ class TestSystemNTP(VyOSUnitTestSHIM.TestCase):
self.assertIn('leapsectz right/UTC', config)
for server in servers:
- self.assertIn(f'server {server} iburst ' + ' '.join(options), config)
+ self.assertIn(f'server {server} iburst port {ptp_port}', config)
self.assertIn('hwtimestamp *', config)