mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-03 22:33:02 +02:00
yanger: vpd: set class to vpd for all vpd nodes
class is mandatory in the standard.
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user