Foundry Patch for Version6.net's LG

I just whipped up a patch for the version6.net's looking glass. to support foundry routers. It's currently being used in production at Unilogic Networks (AS28788). The patch can be found here.

The main problem was the inability to turn off the pager function on a foundry router in usermode. It is possible in enable mode, but hey we don't want our looking glass to login with full privileges now do we. So I added an extra check that checks for the pager and sends a space out. The problem is that my knowledge of Net::Telnet is very basic and I had no real clue on how to fix this nicely. So the timeout on waitfor has been set to 1 second to speed up this process. Another bug in the software is the newline it shows after every occurence of the pager.

Anybody that can or will fix this is welcome to do so and supply a patch to this patch. This patch has also been sent to the maintaner of version6.net's LG, so hopefully it will be in the next release.


Name:  
Remember personal info?

Email:
URL:
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.