From c50178f2d1df28ed88df43eb9d32209d946786a0 Mon Sep 17 00:00:00 2001 From: Darren Loher Date: Thu, 30 May 2024 15:19:56 -0700 Subject: [PATCH] fix install-position (#1117) Correct install-position to be a string, not a leaf-ref. --- .../models/platform/openconfig-platform-common.yang | 8 +++++++- release/models/platform/openconfig-platform.yang | 12 ++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/release/models/platform/openconfig-platform-common.yang b/release/models/platform/openconfig-platform-common.yang index 299ed3a8c..04f58b3ac 100644 --- a/release/models/platform/openconfig-platform-common.yang +++ b/release/models/platform/openconfig-platform-common.yang @@ -20,7 +20,13 @@ submodule openconfig-platform-common { "This modules contains common groupings that are used in multiple components within the platform module."; - oc-ext:openconfig-version "0.26.0"; + oc-ext:openconfig-version "0.27.0"; + + revision "2024-05-29" { + description + "Change install-position from leaf-ref to string."; + reference "0.27.0"; + } revision "2024-04-12" { description diff --git a/release/models/platform/openconfig-platform.yang b/release/models/platform/openconfig-platform.yang index 334522039..89ebb559b 100644 --- a/release/models/platform/openconfig-platform.yang +++ b/release/models/platform/openconfig-platform.yang @@ -65,7 +65,13 @@ module openconfig-platform { (presence or absence of a component) and state (physical attributes or status)."; -oc-ext:openconfig-version "0.26.0"; + oc-ext:openconfig-version "0.27.0"; + + revision "2024-05-29" { + description + "Change install-position from leaf-ref to string."; + reference "0.27.0"; + } revision "2024-04-12" { description @@ -431,9 +437,7 @@ oc-ext:openconfig-version "0.26.0"; } leaf install-position { - type leafref { - path "../name"; - } + type string; description "System-supplied index to a position where this component is installed. The position may be referred in device documenation