[racktables-users] Re: RackCode hints (was: RfI - Request for improvement: Splitting power plug into uplink and downlink)

Add the following to your RackCode:

        define [Unmounted] {$unmounted}

This will create a filter that you can set that will show everything that is 
unmounted.

-----Original Message-----
From: racktables-users-bounce@xxxxxxxxxxxxx 
[mailto:racktables-users-bounce@xxxxxxxxxxxxx] On Behalf Of Frank Altpeter
Sent: Thursday, July 02, 2009 5:46 AM
To: racktables-users@xxxxxxxxxxxxx
Subject: [racktables-users] Re: RackCode hints (was: RfI - Request for 
improvement: Splitting power plug into uplink and downlink)

Hi there,

on 2009-06-19 at 09:50:36 CEST, Denis Ovsienko wrote:
> Regarding the "added new object" message, modifiying it shouldn't be a 
> big trick either. And the object type selector, it is gone due to 
> internal rearrangements. It can be selectively emulated with RackCode 
> right now:
> 
> +-----------------------------------------------------------------+
> | concat('define [is ', dict_value, '] {$typeid_', dict_key, '}') |
> +-----------------------------------------------------------------+
> | define [is BlackBox] {$typeid_1}                                | 
> | define [is PDU] {$typeid_2}                                     | 
> | define [is Shelf] {$typeid_3}                                   | 
[...]
> | define [is Wireless] {$typeid_965}                              | 
> | define [is FC switch] {$typeid_1055}                            | 
> +-----------------------------------------------------------------+
> 
> The selector will be visible in the "filter" area.


One more question about the tag list definition via RackCode ... previous 
versions had the "unmounted" tab which does only show unmounted objects (which 
I found _very_ helpful).

I think there should be a way to create a tag filter item for this, but I don't 
know, how.

Any ideas on that? I really like having the choice to output unmounted objects 
only. It makes reviewing uncompleted data very easy :)
 

Le deagh dhùraghd,

        Frank Altpeter

--
FA-RIPE || http://www.altpeter.de/
Viva la evolution
| "`You know,' said Arthur, `it's at times like this, when I'm trapped 
| in a Vogon airlock with a man from Betelgeuse, and about to die from 
| asphyxiation in deep space that I really wish I'd listened to what my 
| mother told me when I was young.'
| `Why, what did she tell you?'
| `I don't know, I didn't listen.'"
| 
| - Arthur coping with certain death as best as he could. 


Other related posts: