lease assist me with this lab: 2.17 LAB: Network Automation (modules) 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 If the input is: Data 20 the output is: Configuring VLAN: 20 Connecting to: Switch1 Sending Config vlan: 20 Sending Config name: Data Configuring VLAN: 20 Connecting to: Switch2 Sending Config vlan: 20 Sending Config name: Data Configuring VLAN: 20 Connecting to: Switch3 Sending Config vlan: 20 Sending Config name: Data Configuring VLAN: 20 Connecting to: Switch4 Sending Config vlan: 20 Sending Config name: Data Configuring VLAN: 20 Connecting to: Switch5 Sending Config vlan: 20 Sending Config name: Data Current code: Main.py: from VLANSetup import VLANSetup from NetManage import NetManage 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() NetManage.py # TODO: Import VLANSetup from VLANSetup.py from VLANSetup Import VLANSetup class NetManage: # TODO: Define constructor with parameters to initialize instance attributes # (device, config) def __init__(sel, device='None', config=VLANSetup()): self.device = device self.config = config def print_info(self): print('Configuring VLAN: %s' % (self.config.number)) print('Connecting to: {}'.format(self.device)) self.config.print_info() print() VLANSetup.py class VLANSetup: # TODO: Define constructor with parameters to initialize instance attributes # (name, number) def __init__(self, name='None', number=0): self.name = name self.number = number def print_info(self): print('Sending Config vlan: {}'.format(self.number)) print('Sending Config name: {}'.format(self.name)) The current error message is : Your program has produced no output. Please assist thank you.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Please assist me with this lab: 2.17 LAB: Network Automation (modules) 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 If the input is: Data 20 the output is: Configuring VLAN: 20 Connecting to: Switch1 Sending Config vlan: 20 Sending Config name: Data Configuring VLAN: 20 Connecting to: Switch2 Sending Config vlan: 20 Sending Config name: Data Configuring VLAN: 20 Connecting to: Switch3 Sending Config vlan: 20 Sending Config name: Data Configuring VLAN: 20 Connecting to: Switch4 Sending Config vlan: 20 Sending Config name: Data Configuring VLAN: 20 Connecting to: Switch5 Sending Config vlan: 20 Sending Config name: Data Current code: Main.py: from VLANSetup import VLANSetup from NetManage import NetManage 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() NetManage.py # TODO: Import VLANSetup from VLANSetup.py from VLANSetup Import VLANSetup class NetManage: # TODO: Define constructor with parameters to initialize instance attributes # (device, config) def __init__(sel, device='None', config=VLANSetup()): self.device = device self.config = config def print_info(self): print('Configuring VLAN: %s' % (self.config.number)) print('Connecting to: {}'.format(self.device)) self.config.print_info() print() VLANSetup.py class VLANSetup: # TODO: Define constructor with parameters to initialize instance attributes # (name, number) def __init__(self, name='None', number=0): self.name = name self.number = number def print_info(self): print('Sending Config vlan: {}'.format(self.number)) print('Sending Config name: {}'.format(self.name)) The current error message is : Your program has produced no output. Please assist thank you.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 4 images

Blurred answer
Knowledge Booster
Network Transmission Cabling
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education