COT.platforms.cisco_nxosv module¶
Platform logic for the Cisco NX-OSv virtual switch.
-
class
NXOSv[source]¶ Bases:
COT.platforms.generic.GenericPlatformPlatform-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– ifcpusis less than 1ValueTooHighError– ifcpusis 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– ifmebibytesis less than 2048 ValueTooHighError: ifmebibytesis 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– ifcountis less than 1ValueTooHighError– ifcountis more than 2
-
CONFIG_TEXT_FILE= 'nxos_config.txt'¶
-
LITERAL_CLI_STRING= None¶
-
PLATFORM_NAME= 'Cisco NX-OSv'¶
-
SUPPORTED_NIC_TYPES= ['E1000', 'virtio']¶
-
classmethod