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
– ifcpus
is less than 1ValueTooHighError
– ifcpus
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
– ifmebibytes
is less than 2048 ValueTooHighError: ifmebibytes
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
– ifcount
is less than 1ValueTooHighError
– ifcount
is more than 2
-
CONFIG_TEXT_FILE
= 'nxos_config.txt'¶
-
LITERAL_CLI_STRING
= None¶
-
PLATFORM_NAME
= 'Cisco NX-OSv'¶
-
SUPPORTED_NIC_TYPES
= ['E1000', 'virtio']¶
-
classmethod