In network administration, many admins will use a VLAN (Virtual Local Area Network) to create logical subnetworks. The advantages of this type of a setup is better confinement of broadcast domains, reduced broadcast traffic and more efficient maintenance of the network. The admin can group network nodes that are physically dispersed into similar broadcast domains for improved network traffic management. Configuration of VLANS on multiple switches can be very time consuming. Python scripts can help automate tasks reducing the need to physically go from switch to switch. Minimal configuration variables may include VLAN name, VLAN number, and Network device. The main.py template provides a list of 5 network switch names. The script will simulate the configuration of those 5 devices. Define the VLANSetup class in VLANSetup.py with a constructor to initialize a VLAN's information. The constructor should by default initialize the VLAN's name to "None" and the VLAN number to 0. Define the NetManage class in NetManage.py with a constructor to initialize a device's hostname. The constructor should by default initialize the Network device to "None" and add a VLANSetup object. Add an import statement to import the VLANSetup class. Add import statements to main.py to import the VLANSetup and NetManage classes. Ex: If the input is: Voice 10 the output is: Configuring VLAN: 10 Connecting to: Switch1 Sending Config vlan: 10 Sending Config name: Voice Configuring VLAN: 10 Connecting to: Switch2 Sending Config vlan: 10 Sending Config name: Voice Configuring VLAN: 10 Connecting to: Switch3 Sending Config vlan: 10 Sending Config name: Voice Configuring VLAN: 10 Connecting to: Switch4 Sending Config vlan: 10 Sending Config name: Voice Configuring VLAN: 10 Connecting to: Switch5 Sending Config vlan: 10 Sending Config name: Voice   # TODO: Import VLANSetup from VLANSetup.py and NetManage from NetManage.py if __name__ == "__main__": deviceList = ['Switch1', 'Switch2', 'Switch3', 'Switch4', 'Switch5'] user_VLAN_name = input() user_VLAN_number = int(input()) #10 -> 200 for d in deviceList: user_device = VLANSetup(user_VLAN_name, user_VLAN_number) new_config = NetManage(d, user_device) new_config.print_info()

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

In network administration, many admins will use a VLAN (Virtual Local Area Network) to create logical subnetworks. The advantages of this type of a setup is better confinement of broadcast domains, reduced broadcast traffic and more efficient maintenance of the network. The admin can group network nodes that are physically dispersed into similar broadcast domains for improved network traffic management.

Configuration of VLANS on multiple switches can be very time consuming. Python scripts can help automate tasks reducing the need to physically go from switch to switch. Minimal configuration variables may include VLAN name, VLAN number, and Network device.

The main.py template provides a list of 5 network switch names. The script will simulate the configuration of those 5 devices.

Define the VLANSetup class in VLANSetup.py with a constructor to initialize a VLAN's information. The constructor should by default initialize the VLAN's name to "None" and the VLAN number to 0.

Define the NetManage class in NetManage.py with a constructor to initialize a device's hostname. The constructor should by default initialize the Network device to "None" and add a VLANSetup object. Add an import statement to import the VLANSetup class.

Add import statements to main.py to import the VLANSetup and NetManage classes.

Ex: If the input is:

Voice 10

the output is:

Configuring VLAN: 10 Connecting to: Switch1 Sending Config vlan: 10 Sending Config name: Voice Configuring VLAN: 10 Connecting to: Switch2 Sending Config vlan: 10 Sending Config name: Voice Configuring VLAN: 10 Connecting to: Switch3 Sending Config vlan: 10 Sending Config name: Voice Configuring VLAN: 10 Connecting to: Switch4 Sending Config vlan: 10 Sending Config name: Voice Configuring VLAN: 10 Connecting to: Switch5 Sending Config vlan: 10 Sending Config name: Voice

 

# TODO: Import VLANSetup from VLANSetup.py and NetManage from NetManage.py


if __name__ == "__main__":
deviceList = ['Switch1', 'Switch2', 'Switch3', 'Switch4', 'Switch5']
user_VLAN_name = input()
user_VLAN_number = int(input()) #10 -> 200
for d in deviceList:
user_device = VLANSetup(user_VLAN_name, user_VLAN_number)
new_config = NetManage(d, user_device)
new_config.print_info()

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY