From ddd0fc5a35e0f5d57e0e4a3e62aec13b1b70dca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Wed, 21 Feb 2024 10:13:07 +0100 Subject: [PATCH] yanger: vpd: set class to vpd for all vpd nodes class is mandatory in the standard. --- board/netconf/rootfs/libexec/infix/yanger | 1 + 1 file changed, 1 insertion(+) diff --git a/board/netconf/rootfs/libexec/infix/yanger b/board/netconf/rootfs/libexec/infix/yanger index ff0cdc36..cd861ab3 100755 --- a/board/netconf/rootfs/libexec/infix/yanger +++ b/board/netconf/rootfs/libexec/infix/yanger @@ -137,6 +137,7 @@ def get_vpd_data(vpd): component["infix-hardware:vpd-data"] = {} if vpd.get("data"): + component["class"] = "infix-hardware:vpd" if vpd["data"].get("manufacture-date"): component["mfg-date"]=datetime.strptime(vpd["data"]["manufacture-date"],"%m/%d/%Y %H:%M:%S").strftime("%Y-%m-%-dT%H:%M:%SZ") if vpd["data"].get("manufacter"):