pyntc.devices.iosxewlc_device
¶
Module for using a Cisco IOSXE WLC device over SSH.
pyntc.devices.iosxewlc_device.IOSXEWLCDevice
¶
Bases: IOSDevice
Cisco IOSXE WLC Device Implementation.
install_os(image_name, reboot=True, read_timeout=2000, **vendor_specifics)
¶
Installs the prescribed Network OS, which must be present before issuing this command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image_name
|
str
|
Name of the IOS image to boot into |
required |
reboot
|
bool
|
This platform automatically reboots after installation. Setting reboot to false will raise an exception. |
True
|
read_timeout
|
int
|
Timeout for reading the output of the command. |
2000
|
vendor_specifics
|
dict
|
Vendor specific options. |
{}
|
Raises:
| Type | Description |
|---|---|
OSInstallError
|
Unable to install OS Error type |
Returns:
| Type | Description |
|---|---|
bool
|
False if no install is needed, true if the install completes successfully |
show(command, expect_string=None, **netmiko_args)
¶
Run command on device.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
command
|
str
|
Command to be ran. |
required |
expect_string
|
str
|
Expected string from command output. Defaults to None. |
None
|
netmiko_args
|
dict
|
Additional arguments to pass to Netmiko's send_command method. |
{}
|
Returns:
| Type | Description |
|---|---|
str
|
Output of command. |