veritas.devicemanagement.scrapli

Module Contents

Classes

Devicemanagement

Functions

get_loglevel(level)

veritas.devicemanagement.scrapli.get_loglevel(level)
class veritas.devicemanagement.scrapli.Devicemanagement(ip, username, password, platform='ios', ssh_keyfile=None, port=22, manufacturer='cisco', scrapli_loglevel='none')

Bases: veritas.devicemanagement.abstract_devicemanagement.AbstractDeviceManagement

open()
close()
disable_paging()
get_config(configtype='running-config')
write_config()
send_configs_from_file(configfile)
send_commands(commands)
send_configs(commands)
send(*unnamed, **named)
send_and_parse_command(*unnamed, **named)

send command(s) to device and parse output

get_facts()

get show version and show hosts summary from device

replace_config(config)
prepare()
load_config(config, replace=False)

load config to device. If replace=True the config is replaced. If replace=False the config is merged

abort_config()
commit_config()
diff_config()

return diff between the running and the specified config

you can use the diff_result to:

  • print(diff_result.device_diff)

  • print(diff_result.unified_diff)

  • print(diff_result.side_by_side_diff)

cleanup()