Added description of vendor specific params

This commit is contained in:
Suvendhu Hansa 2022-11-04 12:26:11 +00:00 committed by Vivek Kumar Dutta
parent 7c11b41fd6
commit 4ed1dfffc3
3 changed files with 1683 additions and 2 deletions

1675
dmtree/vendor/iopsys/vendor.json vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -622,7 +622,12 @@ def get_param_info_from_json(data, dm_json_files=None, info="description"):
if i != (len(list_data) - 1) and list_data[i + 1] == list_data[i] + "{i}.":
continue
try:
ob = ob[list_data[i]]
if str(list_data[i]).find(BBF_VENDOR_PREFIX) != -1:
param = str(list_data[i]).replace(BBF_VENDOR_PREFIX, "{BBF_VENDOR_PREFIX}")
else:
param = str(list_data[i])
ob = ob[param]
found = True
except KeyError:
found = False

View file

@ -12,7 +12,8 @@
],
"dm_json_files": [
"../dmtree/json/tr181.json",
"../dmtree/json/tr104.json"
"../dmtree/json/tr104.json",
"../dmtree/vendor/iopsys/vendor.json"
],
"vendor_prefix": "X_IOPSYS_EU_",
"plugins": [