Sébastien Aperghis-Tramoni > RackMan-1.17 > RackMan::Device::Switch::Cisco_Catalyst

Download:
RackMan-1.17.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source   Latest Release: RackMan-1.18

NAME ^

RackMan::Device::Switch::Cisco_Catalyst - Role for Cisco Catalyst network switches

DESCRIPTION ^

This module is the role for Cisco Catalyst network switches.

PUBLIC METHODS ^

write_config

Write the Cisco commands for configuring the device to a config.cmd file, in the directory specified in RackMan's config (section [general], parameter path).

Arguments:

1. options (hashref)

diff_config

Fetch the configuration from the device, compare it with the configuration generated from the RackTables database and print the differences.

The exit status of the program is set to 1 if there are differences, 0 otherwise.

Arguments:

1. options (hashref)

push_config

Read the configuration from disk and send it to the device.

Arguments:

1. options (hashref)

INTERNAL METHODS ^

fetch_from_database

Generate the Cisco commands for configuring the device accordingly to the information from the RackTables database.

Arguments:

1. options (hashref)

Return:

fetch_from_device

Fetch the list of interfaces with their description, and convert it to the corresponding commands batch.

Arguments:

1. options (hashref)

Return:

store_to_device

Send the Cisco commands to the device.

Arguments:

1. options (hashref)
2. commands batch (RackMan::File instance)

CONFIGURATION ^

See "Section [device:switch:cisco_catalyst]" in rack

AUTHOR ^

Sebastien Aperghis-Tramoni

syntax highlighting: