X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fcommon%2Factions.php;fp=planetlab%2Fcommon%2Factions.php;h=8c4beab6e8233b001949ab2960ebed7b3b6c5dbe;hb=9d5da0d9968a075070eb8c5b75d8267d082bec31;hp=dd6a661b1ba0e08281e64eabf2c926b23f3c3830;hpb=c0e69680677e153e96e0302633e97e31b1e2c7a6;p=plewww.git diff --git a/planetlab/common/actions.php b/planetlab/common/actions.php index dd6a661..8c4beab 100644 --- a/planetlab/common/actions.php +++ b/planetlab/common/actions.php @@ -49,7 +49,7 @@ $known_actions []= "node-boot-state"; $known_actions []= "delete-node"; // expects: node_id $known_actions []= "update-node"; -// expects: node_id, hostname, model +// expects: node_id, hostname, model, node_type $known_actions []= "attach-pcu"; // expects: node_id, pcu_id, port (pcu_id <0 means detach) $known_actions []= "reboot-node-with-pcu"; @@ -349,8 +349,9 @@ switch ($action) { $node_id=intval($_POST['node_id']); $hostname= $_POST['hostname']; $model= $_POST['model']; + $node_type= $_POST['node_type']; - $fields= array( "hostname"=>$hostname, "model"=>$model ); + $fields= array( "hostname"=>$hostname, "model"=>$model, "node_type"=>$node_type ); $api->UpdateNode( $node_id, $fields ); $error= $api->error();