- 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,) )
+ # call getNodeFlavour and store in VARS['node_flavour']
+ try:
+ node_flavour = BootAPI.call_api_function(vars, "GetNodeFlavour", (vars['NODE_ID'], ) )
+ nodefamily = node_flavour['nodefamily']
+ extensions = node_flavour['extensions']
+ plain = node_flavour['plain']
+ except:
+ exc_type, exc_value, exc_traceback = sys.exc_info()
+ lines=traceback.format_exception(exc_type,exc_value,exc_traceback)
+ for line in lines: log.write(line)
+ raise BootManagerException ("Could not call GetNodeFlavour - need PLCAPI-5.2")