A network management tool is a software tool that allow a network administrator to supervise individual devices a network, whether it is a switch, a router, or any SNMP enabled device. Your objective in this final Assignment is write a tool that allows for the management of a network that may have up to 10 switches and 5 routers.
For each switch, you need to keep the following information: Vendor, Model number, SVI support (yes/No), # of Ethernet ports (up to a max of 24 ports), which port is up or down, and used switching protocol. A network administrator should be able to switch on/off any port on any switch, turn off a switch (requiring switching off all ports first) and printing information about one or all switches.
For each router, you need to keep the following information: Vendor, Model number, # of serial ports (up to 16 ports), used routing protocol. A network administrator should be able to switch on/off any port on any router, turn off a router (requiring switching off all ports first) and printing information about one or all router.
Write a program that:
The device identification number should be the record number. Your program should have a base class Device, and derive two classes from it: Switch and Router. Your program should include polymorphic functionality when possible. Your program should include exception handling when possible (ex. Trying to switch off a port that is already switched off).