COT.platforms.cisco_nxosv module

Platform logic for the Cisco NX-OSv virtual switch.

class NXOSv[source]

Bases: COT.platforms.generic.GenericPlatform

Platform-specific logic for Cisco NX-OSv (Titanium).

classmethod guess_nic_name(nic_number)[source]

NX-OSv names its NICs a bit interestingly...

Parameters:nic_number (int) – Nth NIC to name.
Returns:
  • mgmt0
  • Ethernet2/1
  • Ethernet2/2
  • ...
  • Ethernet2/48
  • Ethernet3/1
  • Ethernet3/2
  • ...
classmethod validate_cpu_count(cpus)[source]

NX-OSv requires 1-8 CPUs.

Parameters:

cpus (int) – Number of CPUs

Raises:
  • ValueTooLowError – if cpus is less than 1
  • ValueTooHighError – if cpus is more than 8
classmethod validate_memory_amount(mebibytes)[source]

NX-OSv requires 2-8 GiB of RAM.

Parameters:mebibytes (int) – RAM, in MiB.
Raises:ValueTooLowError – if mebibytes is less than 2048 ValueTooHighError: if mebibytes is more than 8192
classmethod validate_serial_count(count)[source]

NX-OSv requires 1-2 serial ports.

Parameters:

count (int) – Number of serial ports.

Raises:
  • ValueTooLowError – if count is less than 1
  • ValueTooHighError – if count is more than 2
CONFIG_TEXT_FILE = 'nxos_config.txt'
LITERAL_CLI_STRING = None
PLATFORM_NAME = 'Cisco NX-OSv'
SUPPORTED_NIC_TYPES = ['E1000', 'virtio']