mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-03-01 17:35:33 +01:00
upgrade the data models used to version 2.13
This commit is contained in:
parent
a5f3a4fc7a
commit
e6f6d8aa4a
9 changed files with 15788 additions and 4437 deletions
|
|
@ -12,6 +12,6 @@
|
|||
|
||||
int get_Device_RootDataModelVersion(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
|
||||
{
|
||||
*value= "2.12";
|
||||
*value= "2.13";
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ def printheaderObjCommon( objname ):
|
|||
def cprintheaderOBJS( objname ):
|
||||
fp = open('./.objparamarray.c', 'a')
|
||||
print >> fp, "DMOBJ %s[] = {" % ("t" + getname(objname) + "Obj")
|
||||
print >> fp, "/* OBJ, permission, addobj, delobj, checkobj, browseinstobj, forced_inform, notification, nextobj, leaf, linker, bbfdm_type*/"
|
||||
print >> fp, "/* OBJ, permission, addobj, delobj, checkobj, browseinstobj, forced_inform, notification, nextjsonobj, nextobj, leaf, linker, bbfdm_type*/"
|
||||
fp.close()
|
||||
|
||||
def hprintheaderOBJS( objname ):
|
||||
|
|
@ -578,7 +578,7 @@ def printOBJline( dmobject, value ):
|
|||
paramarray = "NULL"
|
||||
|
||||
fp = open('./.objparamarray.c', 'a')
|
||||
print >> fp, "{\"%s\", %s, %s, %s, NULL, %s, NULL, NULL, %s, %s, NULL, %s}," % (getlastname(dmobject), access, faddobj, fdelobj, fbrowse, objchildarray, paramarray, bbfdm)
|
||||
print >> fp, "{\"%s\", %s, %s, %s, NULL, %s, NULL, NULL, NULL, %s, %s, NULL, %s}," % (getlastname(dmobject), access, faddobj, fdelobj, fbrowse, objchildarray, paramarray, bbfdm)
|
||||
fp.close()
|
||||
|
||||
def printusage():
|
||||
|
|
|
|||
3993
json/tr181.json
3993
json/tr181.json
File diff suppressed because it is too large
Load diff
|
|
@ -355,10 +355,10 @@ SCRIPTS_PATH_TR143=${DM_PATH}/${DM_TR143}
|
|||
SCRIPTS_PATH_TR157=${DM_PATH}/${DM_TR157}
|
||||
DIR_LIST="$SCRIPTS_PATH_TR181 $SCRIPTS_PATH_TR104 $SCRIPTS_PATH_TR143 $SCRIPTS_PATH_TR157"
|
||||
ROOT_PATH="Device"
|
||||
DM_HEAD="$ROOT_PATH-2.12"
|
||||
DM_FILE="tr-181-2-12-0-cwmp-full.xml"
|
||||
DM_VERSION="tr-181-2-12-0-cwmp"
|
||||
model_name="$ROOT_PATH:2.12"
|
||||
DM_HEAD="$ROOT_PATH-2.13"
|
||||
DM_FILE="tr-181-2-13-0-cwmp-full.xml"
|
||||
DM_VERSION="tr-181-2-13-0-cwmp"
|
||||
model_name="$ROOT_PATH:2.13"
|
||||
XML_OUT_STREAM_BBF="iopsys_bbf.xml"
|
||||
############## GEN BBF Data Models TREE ##############
|
||||
echo "Start Generation of BBF Data Models..."
|
||||
|
|
|
|||
|
|
@ -325,15 +325,15 @@ def printincluderoot( objname ):
|
|||
def printusage():
|
||||
print "Usage: " + sys.argv[0] + " <xml data model> [Object path]...[Object path]"
|
||||
print "Examples:"
|
||||
print " - " + sys.argv[0] + " tr-181-2-12-0-cwmp-full.xml Device.WiFi."
|
||||
print " - " + sys.argv[0] + " tr-181-2-13-0-cwmp-full.xml Device.WiFi."
|
||||
print " ==> Generate the C code of the sub tree Device.WiFi. in wifi.c/.h"
|
||||
print " - " + sys.argv[0] + " tr-181-2-12-0-cwmp-full.xml Device.IP.Diagnostics."
|
||||
print " - " + sys.argv[0] + " tr-181-2-13-0-cwmp-full.xml Device.IP.Diagnostics."
|
||||
print " ==> Generate the C code of the sub tree Device.IP.Diagnostics. in ipdiagnostics.c/.h"
|
||||
print " - " + sys.argv[0] + " tr-181-2-12-0-cwmp-full.xml Device.WiFi. Device.Time."
|
||||
print " - " + sys.argv[0] + " tr-181-2-13-0-cwmp-full.xml Device.WiFi. Device.Time."
|
||||
print " ==> Generate the C code of the sub tree Device.IP. and Device.WiFi. in time.c/.h and wifi.c/.h"
|
||||
print " - " + sys.argv[0] + " tr-181-2-12-0-cwmp-full.xml Device."
|
||||
print " - " + sys.argv[0] + " tr-181-2-13-0-cwmp-full.xml Device."
|
||||
print " ==> Generate the C code of all data model in rootdevice.c/.h"
|
||||
print "Example of xml data model file: https://www.broadband-forum.org/cwmp/tr-181-2-12-0-cwmp-full.xml"
|
||||
print "Example of xml data model file: https://www.broadband-forum.org/cwmp/tr-181-2-13-0-cwmp-full.xml"
|
||||
|
||||
def getobjectpointer( objname ):
|
||||
obj = None
|
||||
|
|
|
|||
|
|
@ -240,15 +240,15 @@ def printPARAM( dmparam ):
|
|||
def printusage():
|
||||
print "Usage: " + sys.argv[0] + " <xml data model> [Object path]...[Object path]"
|
||||
print "Examples:"
|
||||
print " - " + sys.argv[0] + " tr-181-2-12-0-cwmp-full.xml Device.WiFi."
|
||||
print " - " + sys.argv[0] + " tr-181-2-13-0-cwmp-full.xml Device.WiFi."
|
||||
print " ==> Generate the json file of the sub tree Device.WiFi. in wifi.json"
|
||||
print " - " + sys.argv[0] + " tr-181-2-12-0-cwmp-full.xml Device.IP.Diagnostics."
|
||||
print " - " + sys.argv[0] + " tr-181-2-13-0-cwmp-full.xml Device.IP.Diagnostics."
|
||||
print " ==> Generate the json file of the sub tree Device.IP.Diagnostics. in ipdiagnostics.json"
|
||||
print " - " + sys.argv[0] + " tr-181-2-12-0-cwmp-full.xml Device.WiFi. Device.Time."
|
||||
print " - " + sys.argv[0] + " tr-181-2-13-0-cwmp-full.xml Device.WiFi. Device.Time."
|
||||
print " ==> Generate the json file of the sub tree Device.IP. and Device.WiFi. in time.json and wifi.json"
|
||||
print " - " + sys.argv[0] + " tr-181-2-12-0-cwmp-full.xml Device."
|
||||
print " - " + sys.argv[0] + " tr-181-2-13-0-cwmp-full.xml Device."
|
||||
print " ==> Generate the json file of all data model in rootdevice.json"
|
||||
print "Example of xml data model file: https://www.broadband-forum.org/cwmp/tr-181-2-12-0-cwmp-full.xml"
|
||||
print "Example of xml data model file: https://www.broadband-forum.org/cwmp/tr-181-2-13-0-cwmp-full.xml"
|
||||
|
||||
def getobjectpointer( objname ):
|
||||
obj = None
|
||||
|
|
|
|||
|
|
@ -394,7 +394,7 @@ def printusage():
|
|||
if "tr-181" in sys.argv[1]:
|
||||
print "Usage: " + sys.argv[0] + " <tr-181 cwmp xml data model> <tr-181 usp xml data model> [Object path]"
|
||||
print "Examples:"
|
||||
print " - " + sys.argv[0] + " tr-181-2-12-0-cwmp-full.xml tr-181-2-12-0-usp-full.xml Device."
|
||||
print " - " + sys.argv[0] + " tr-181-2-13-0-cwmp-full.xml tr-181-2-13-0-usp-full.xml Device."
|
||||
print " ==> Generate the json file of the sub tree Device. in tr181.json"
|
||||
else:
|
||||
print "Usage: " + sys.argv[0] + " <xml data model> [Object path]"
|
||||
|
|
@ -405,7 +405,7 @@ def printusage():
|
|||
print " ==> Generate the json file of the sub tree Device. in tr106.json"
|
||||
|
||||
print ""
|
||||
print "Example of xml data model file: https://www.broadband-forum.org/cwmp/tr-181-2-12-0-cwmp-full.xml"
|
||||
print "Example of xml data model file: https://www.broadband-forum.org/cwmp/tr-181-2-13-0-cwmp-full.xml"
|
||||
|
||||
def getobjectpointer( objname ):
|
||||
obj = None
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue