better for local, not yet for peers

This commit is contained in:
Wolfgang Hottgenroth 2025-02-20 22:58:05 +01:00
parent e660008d26
commit ac2a71ea11

View File

@ -159,8 +159,8 @@ class NtpsecDataUpdater(pyagentx3.Updater):
if ds.data:
try:
for index, data_spec in enumerate(LOCAL_SERVER_KEYS):
CURRENT_NAME_OID_BASE = '0.' + str(index) + '.0'
CURRENT_VALUE_OID_BASE = '0.' + str(index) + '.1'
CURRENT_NAME_OID_BASE = f"0.0.{index}"
CURRENT_VALUE_OID_BASE = f"0.1.{index}"
self._data[CURRENT_NAME_OID_BASE] = {
'name': CURRENT_NAME_OID_BASE,
'type': pyagentx3.TYPE_OCTETSTRING,