You are re-inventing the wheel. Stuffs like talking to routers from different vendors, discoveries of neighbors are significantly more complicated than you think. Why don't you use existing ones like nmap's zen gui frontend? If you still want it, go search for a similar project in sourceforge.