mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Added description of vendor specific params
This commit is contained in:
parent
7c11b41fd6
commit
4ed1dfffc3
3 changed files with 1683 additions and 2 deletions
1675
dmtree/vendor/iopsys/vendor.json
vendored
Normal file
1675
dmtree/vendor/iopsys/vendor.json
vendored
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue