| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| Howto eliminate duplicates in 'Devices' Frame ? http://www.steveshipway.org/forum/viewtopic.php?f=2&t=4567 |
Page 1 of 1 |
| Author: | babydr [ Wed Sep 28, 2011 5:36 am ] |
| Post subject: | Howto eliminate duplicates in 'Devices' Frame ? |
Hello Steve & ALL , I have painted myself into a corner with the DNS & rancid difficulty I have (somewhat successfully) worked around . But , I am seeing ‘Duplicate’ entries in the ‘Devices’ Frame for that work around . Might there be a way to Eliminate Duplicated names in the ‘Devices’ Frame ? At runtime or ??? There are 2 types of devices in the network Cisco & HP (Routers & Switches) each manufacturers devices have separate auth credentials & thus have separate DNS naming for rancid configuration to differentiate them . ie: cp-rtrh01 , mo-swh04 ,... FE: ... /var/www/htdocs/router2cgi/cfg/cp-rtr01.cfg /var/www/htdocs/router2cgi/cfg/cp-rtr01.cfg-ORIG /var/www/htdocs/router2cgi/cfg/cp-rtr01.ok /var/www/htdocs/router2cgi/cfg/cp-rtrh01.cfg@ <Linked to cp-rtr01.cfg> RouteDevices CP-RTR01 ChenaPump CP-RTR01 ChenaPump Tia , JimL |
|
| Author: | stevesh [ Wed Sep 28, 2011 1:27 pm ] |
| Post subject: | Re: Howto eliminate duplicates in 'Devices' Frame ? |
The problem is, your cfgfiles is matching *.cfg, so it matches both cp-rtr01.cfg and cp-rtrh01.cfg -- however, cp-rtrh01.cfg is a softlink to cp-rtr01.cfg and so effectively you have two identical devices in there. I'm not sure why you have cp-rtrh01.cfg at all. However, if you have to have it, you'll need to exclude it form your cfgfiles, which might be hard to do as this list is inclusive. The duplicates cant be eliminated by routers2 because routers2 uniquely identifies by the cfg file name. The description can be anythingm its just text (though it is used for a sort). |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|