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:
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:
push_config
Read the configuration from disk and send it to the device.
Arguments:
INTERNAL METHODS
fetch_from_database
Generate the Cisco commands for configuring the device accordingly to the information from the RackTables database.
Arguments:
Return:
configuration (RackMan::File instance)
fetch_from_device
Fetch the list of interfaces with their description, and convert it to the corresponding commands batch.
Arguments:
Return:
commands batch (RackMan::File instance)
store_to_device
Send the Cisco commands to the device.
Arguments:
CONFIGURATION
See "Section [device:switch:cisco_catalyst]" in rack
AUTHOR
Sebastien Aperghis-Tramoni