Fix all blank spaces in tr181.json

This commit is contained in:
Amin Ben Ramdhane 2020-05-30 11:57:31 +01:00
parent b7d9ea43ad
commit 5b1f2885e2
2 changed files with 7 additions and 7 deletions

View file

@ -29790,7 +29790,7 @@
"list": {
"datatype": "string"
}
},
},
"Device.WiFi.Radio.{i}.Stats.": {
"type": "object",
"protocols": [
@ -31699,7 +31699,7 @@
}
]
},
"SecondaryRadiusServerIPAddr ": {
"SecondaryRadiusServerIPAddr": {
"type": "string",
"read": true,
"write": true,
@ -31822,7 +31822,7 @@
"cwmp"
],
"datatype": "boolean"
},
},
"Reset()": {
"type": "command",
"protocols": [
@ -74311,7 +74311,7 @@
}
]
},
"PublishQoS ": {
"PublishQoS": {
"type": "unsignedInt",
"read": true,
"write": true,

View file

@ -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")