Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

/**
 * @param {Config} config
 * @param {Context} context
 * Do not edit this comment or parameter types. Required for code suggestions
*/
exports exports.main = function (config, context) {


   

var changeDHCPNetworks = function ( Network , Source ) {
    var table = config.getTableByOid( "1.2.10.20" );
    var row = table.getFirstRowByOid ( "1" , Network )
    row.setByOid( "22" , Source );
    }

   
// Change the optional Source Address for DHCP-Networks
    // Network = Name of DHCP Network, Source = Source Address

   
// Copy and edit the following line for each network.
    changeDHCPNetworks( Network , Source );


   


};


                
                

Add-in as JSON file:

View file
nameDHCPSourceAddress.json
height150