diff --git a/src/sonic-yang-models/tests/yang_model_tests/tests_config/ntp.json b/src/sonic-yang-models/tests/yang_model_tests/tests_config/ntp.json index c886bec3d20..7617aad2818 100644 --- a/src/sonic-yang-models/tests/yang_model_tests/tests_config/ntp.json +++ b/src/sonic-yang-models/tests/yang_model_tests/tests_config/ntp.json @@ -28,7 +28,7 @@ ] }, "sonic-ntp:NTP_KEY": { - "NTP_KEYS_LIST": [ + "NTP_KEY_LIST": [ { "id": 10, "value": "bHVtb3M=" @@ -422,7 +422,7 @@ "NTP_KEY_VALID": { "sonic-ntp:sonic-ntp": { "sonic-ntp:NTP_KEY": { - "NTP_KEYS_LIST": [ + "NTP_KEY_LIST": [ { "id": 20, "type": "md5", @@ -448,7 +448,7 @@ "NTP_KEY_ID_INVALID": { "sonic-ntp:sonic-ntp": { "sonic-ntp:NTP_KEY": { - "NTP_KEYS_LIST": [ + "NTP_KEY_LIST": [ { "id": 100000 } @@ -459,7 +459,7 @@ "NTP_KEY_TRUSTED_INVALID": { "sonic-ntp:sonic-ntp": { "sonic-ntp:NTP_KEY": { - "NTP_KEYS_LIST": [ + "NTP_KEY_LIST": [ { "id": 20, "trusted": "nope" @@ -471,7 +471,7 @@ "NTP_KEY_TYPE_INVALID": { "sonic-ntp:sonic-ntp": { "sonic-ntp:NTP_KEY": { - "NTP_KEYS_LIST": [ + "NTP_KEY_LIST": [ { "id": 20, "type": "md6" @@ -483,7 +483,7 @@ "NTP_KEY_VALUE_INVALID": { "sonic-ntp:sonic-ntp": { "sonic-ntp:NTP_KEY": { - "NTP_KEYS_LIST": [ + "NTP_KEY_LIST": [ { "id": 20, "value": "" diff --git a/src/sonic-yang-models/yang-models/sonic-ntp.yang b/src/sonic-yang-models/yang-models/sonic-ntp.yang index 2591f8c7a58..5861ba0b4ca 100644 --- a/src/sonic-yang-models/yang-models/sonic-ntp.yang +++ b/src/sonic-yang-models/yang-models/sonic-ntp.yang @@ -50,6 +50,11 @@ module sonic-ntp { "Add extended configuration options"; } + revision 2025-07-21 { + description + "Corrected NTP_KEY_LIST list name"; + } + typedef association-type { description "NTP server association type"; type enumeration { @@ -192,7 +197,7 @@ module sonic-ntp { leaf key { description "NTP server key ID"; type leafref { - path /ntp:sonic-ntp/ntp:NTP_KEY/ntp:NTP_KEYS_LIST/ntp:id; + path /ntp:sonic-ntp/ntp:NTP_KEY/ntp:NTP_KEY_LIST/ntp:id; } } @@ -234,7 +239,7 @@ module sonic-ntp { description "NTP authentication keys inventory"; - list NTP_KEYS_LIST { + list NTP_KEY_LIST { description "NTP authentication keys inventory"; key "id"; @@ -261,7 +266,7 @@ module sonic-ntp { default md5; description "NTP authentication key type"; } - } /* end of list NTP_KEYS_LIST */ + } /* end of list NTP_KEY_LIST */ } /* end of container NTP_KEY */