if ( ! $node_id ) { plc_error('Malformed URL - id not set'); return; }
////////////////////
-// Get all columns as we focus on only one entry
-$nodes= $api->GetNodes( array($node_id));
+// Need to mention columns explicitly as we want hrn which is a tag
+$columns=array ('hostname','boot_state','run_level','site_id','model','node_type','version',
+ 'slice_ids','conf_file_ids','interface_ids','nodegroup_ids','peer_id',
+ 'pcu_ids','ports','hrn');
+$nodes= $api->GetNodes( array($node_id),$columns);
if (empty($nodes)) {
drupal_set_message ("Node " . $node_id . " not found");
$node=$nodes[0];
// node info
$hostname= $node['hostname'];
+$hrn=$node['hrn'];
$boot_state= $node['boot_state'];
$run_level = $node['run_level'];
$site_id= $node['site_id'];
$toggle = new PlekitToggle ('node',"Details",
array('bubble'=>'Display and modify details for that node',
- 'visible'=>get_arg('show_details',true)));
+ 'visible'=>get_arg('show_details')));
$toggle->start();
$details=new PlekitDetails($privileges);
// xxx can hostname really be changed like this without breaking the rest, bootcd .. ?
//$details->th_td("Hostname",$hostname,"hostname");
$details->th_td("Hostname",$hostname);
+if ($hrn) $details->th_td("SFA hrn",$hrn);
+else $details->tr("SFA hrn not set","center");
$details->th_td("Model",$model,"model");
// reservation ?
if ( $admin_privileges) {
$details->space();
//////////////////// type & version
-$details->th_td("Version",$version);
+$details->th_td("CD Version",$version);
// let's use plc_objects
$Node = new Node($node);
$details->th_td("Date created",$Node->dateCreated());
{
$toggle=new PlekitToggle ('slices',count_english_warning($slices,'sliver'),
array('bubble'=>'Review slices running on that node',
- 'visible'=>get_arg('show_slices',false)));
+ 'visible'=>get_arg('show_slices')));
$toggle->start();
if ( ! $slices ) {
plc_warning ("This node is not associated to any slice");
$toggle = new PlekitToggle ('tags',count_english($tags,'tag'),
array('bubble'=>'Inspect and set tags on that node',
- 'visible'=>get_arg('show_tags',false)));
+ 'visible'=>get_arg('show_tags')));
$toggle->start();
$headers=array("Name"=>"string",
if ( $local_peer ) {
$toggle=new PlekitToggle ('interfaces',count_english_warning($interfaces,'interface'),
array('bubble'=>'Inspect and tune interfaces on that node',
- 'visible'=>get_arg('show_interfaces',false)));
+ 'visible'=>get_arg('show_interfaces')));
$toggle->start();
// display interfaces
if( ! $interfaces ) {