person; $_roles= $_person['role_ids']; //print_r( $_person ); // if add is set, diplay add sliver form if( $_GET['add'] ) { $node_id= $_GET['add']; $slice_id= $_GET['slice']; // slice info $slice_info= $api->GetSlices( array( intval( $slice_id ) ), array( "name" ) ); // node info $node_info= $api->GetNodes( array( intval( $node_id ) ), array( "hostname" ) ); // get tag types $type_info= $api->GetTagTypes( NULL, array( "tag_type_id", "tagname" ) ); // get the slivers for this node $sliver_info= $api->GetSliceTags( array( "node_id"=>intval( $node_id ), "slice_id"=>intval( $slice_id ) ), array( "tag_type_id", "name" ) ); $types_left= $type_info; // start form echo "
\n"; } // if slice and node ids are passed display slivers and tags if( $_GET['slice'] && $_GET['node'] ) { $slice_id= $_GET['slice']; $node_id= $_GET['node']; // slice info $slice_info= $api->GetSlices( array( intval( $slice_id ) ), array( "name" ) ); // node info $node_info= $api->GetNodes( array( intval( $node_id ) ), array( "hostname" ) ); // get the slivers for this node $sliver_info= $api->GetSliceTags( array( "node_id"=>intval( $node_id ), "slice_id"=>intval( $slice_id ) ), array( "slice_tag_id", "name", "value", "min_role_id", "description" ) ); // get the attrbibutes for this slice $tag_info= $api->GetSliceTags( array( intval( $slice_id ) ), array( "slice_tag_id", "name", "value", "min_role_id", "description" ) ); // start form echo "\n"; } // Print footer include 'plc_footer.php'; ?>