mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Fix all blank spaces in tr181.json
This commit is contained in:
parent
b7d9ea43ad
commit
5b1f2885e2
2 changed files with 7 additions and 7 deletions
|
|
@ -31699,7 +31699,7 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"SecondaryRadiusServerIPAddr ": {
|
||||
"SecondaryRadiusServerIPAddr": {
|
||||
"type": "string",
|
||||
"read": true,
|
||||
"write": true,
|
||||
|
|
@ -74311,7 +74311,7 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"PublishQoS ": {
|
||||
"PublishQoS": {
|
||||
"type": "unsignedInt",
|
||||
"read": true,
|
||||
"write": true,
|
||||
|
|
|
|||
|
|
@ -295,9 +295,9 @@ def objhasparam (dmobject):
|
|||
def printopenobject (obj):
|
||||
fp = open('./.json_tmp', 'a')
|
||||
if "tr-104" in sys.argv[1]:
|
||||
print >> fp, "\"Device.Services.%s\" : {" % obj.get('name')
|
||||
print >> fp, "\"Device.Services.%s\" : {" % obj.get('name').replace(" ", "")
|
||||
else:
|
||||
print >> fp, "\"%s\" : {" % obj.get('name')
|
||||
print >> fp, "\"%s\" : {" % obj.get('name').replace(" ", "")
|
||||
fp.close()
|
||||
|
||||
def printopenfile ():
|
||||
|
|
@ -463,7 +463,7 @@ def printPARAM( dmparam, dmobject, bbfdm_type ):
|
|||
islist, datatype, paramvalrange, paramenum, paramunit, parampattern, listminItem, listmaxItem, listmaxsize = getparamoption(dmparam)
|
||||
|
||||
fp = open('./.json_tmp', 'a')
|
||||
print >> fp, "\"%s\" : {" % dmparam.get('name')
|
||||
print >> fp, "\"%s\" : {" % dmparam.get('name').replace(" ", "")
|
||||
print >> fp, "\"type\" : \"%s\"," % getparamtype(dmparam)
|
||||
print >> fp, "\"read\" : true,"
|
||||
print >> fp, "\"write\" : %s," % ("false" if dmparam.get('access') == "readOnly" else "true")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue