Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2.17LAB: Network Automation (modules) In network administration, many admins will use a VLAN (Virtual Local Area Network) to create logical subnetworks. The advantages of this

2.17LAB: 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.

DefinetheVLANSetupclass 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.

DefinetheNetManageclass 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 theVLANSetupclass.

Addimport statements to main.py to import theVLANSetupandNetManageclasses.

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 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transport Operations

Authors: Allen Stuart

2nd Edition

978-0470115398, 0470115394

Students also viewed these Programming questions

Question

What are the economic considerations for reverse logistics?

Answered: 1 week ago

Question

Define marketing and discuss its core concepts.

Answered: 1 week ago