- vars['NODE_NETWORKS']= node_networks
-
- log.write( "Primary network as returned from PLC: %s\n" % str(network) )
-
- # if we got this far, the ip on the floppy and the ip in plc match,
- # make the rest of the PLC information match whats on the floppy
- network['method']= NETWORK_SETTINGS['method']
-
- # only nodes that have the node_id specified directly in the configuration
- # file can change their mac address
- if WAS_NODE_ID_IN_CONF == 1:
- network['mac']= NETWORK_SETTINGS['mac']
-
- network['gateway']= NETWORK_SETTINGS['gateway']
- network['network']= NETWORK_SETTINGS['network']
- network['broadcast']= NETWORK_SETTINGS['broadcast']
- network['netmask']= NETWORK_SETTINGS['netmask']
- network['dns1']= NETWORK_SETTINGS['dns1']
- network['dns2']= NETWORK_SETTINGS['dns2']
-
- log.write( "Updating network settings at PLC to match floppy " \
- "(except for node ip).\n" )
- update_vals= {}
- update_vals['primary_network']= network
- BootAPI.call_api_function( vars, "BootUpdateNode", (update_vals,) )