veritas.devicemanagement.napalm
Module Contents
Classes
abstract class for device management |
- class veritas.devicemanagement.napalm.Devicemanagement(**kwargs)
Bases:
veritas.devicemanagement.abstract_devicemanagement.AbstractDeviceManagementabstract class for device management
- Parameters:
ip (str) – ip address of the device
username (str) – username for the device
password (str) – password for the device
platform (str) – platform of the device
ssh_keyfile (str) – ssh keyfile for the device
port (int) – port for the device
manufacturer (str) – manufacturer of the device
scrapli_loglevel (str) –
loglevel for scrapli
# see also veritas/src/veritas/devicemanagement/scrapli.py
- open(timeout=60, optional_args={})
open connection to the device
- has_open_connection()
- get_connection()
- close()
close connection to the device
- disable_paging()
- get_config(configtype='running')
get config from the device
- 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(filename)
- load_config(filename=None, config=None)
- merge_config(config)
- abort_config(config=None)
- commit_config(revert_in=None)
- diff_config(config=None)
- has_pending_commits()
- rollback()