Reply To: change netconfig programatically?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf change netconfig programatically? Reply To: change netconfig programatically?

#59305
Steve Carter
Participant

    As far as I know, there are no commands to ‘put’ back to the NetConfig.  That is why I ‘rebuild’ it whenever I make any changes.

    I’ve created some code to mass replace certain components within the protocol threads.  In short, here’s what I do:

    1.  Use the prologue commands to create a new prologue (append to newNetConfigList)

    2.  A quick loop through the processes to rebuild each process (append each to newNetConfigList)

    3.  I then go through each protocol thread and replace whatever it is I’m looking for. (append each to newNetConfigList)

    4.  Join newNetConfigList with n and write back out to file.

    You can find the prologue commands in hcitcl ( I only use makeBasicPrologueList and writePrologue:

    hcitcl>netcfgLoad

    1

    hcitcl>info commands *Prologue*

    putNetPrologue checkPrologueList writePrologue readPrologue makeBasicPrologueList

    Hope this helps.

    Steve