COT.platforms.cisco_nexus_9000v
module¶
Platform logic for the Cisco Nexus 9000v virtual switch.
-
class
Nexus9000v
[source]¶ Bases:
COT.platforms.generic.GenericPlatform
Platform-specific logic for Cisco Nexus 9000v.
-
classmethod
guess_nic_name
(nic_number)[source]¶ The Nexus 9000v has a management NIC and some number of data NICs.
Parameters: nic_number (int) – Nth NIC to name. Returns: - mgmt0
- Ethernet1/1
- Ethernet1/2
- ...
-
classmethod
validate_cpu_count
(cpus)[source]¶ The Nexus 9000v requires 1-4 vCPUs.
Parameters: cpus (int) – Number of vCPUs
Raises: ValueTooLowError
– ifcpus
is less than 1ValueTooHighError
– ifcpus
is more than 4
-
classmethod
validate_memory_amount
(mebibytes)[source]¶ The Nexus 9000v requires at least 8 GiB of RAM.
Parameters: mebibytes (int) – RAM, in MiB. Raises: ValueTooLowError
– ifmebibytes
is less than 8192
-
classmethod
validate_nic_count
(count)[source]¶ The Nexus 9000v requires at least 1 and supports at most 65 NICs.
Parameters: count (int) – Number of NICs.
Raises: ValueTooLowError
– ifcount
is less than 1ValueTooHighError
– ifcount
is more than 65
-
classmethod
validate_serial_count
(count)[source]¶ The Nexus 9000v requires exactly 1 serial port.
Parameters: count (int) – Number of serial ports.
Raises: ValueTooLowError
– ifcount
is less than 1ValueTooHighError
– ifcount
is more than 1
-
CONFIG_TEXT_FILE
= 'nxos_config.txt'¶
-
LITERAL_CLI_STRING
= None¶
-
PLATFORM_NAME
= 'Cisco Nexus 9000v'¶
-
SUPPORTED_NIC_TYPES
= ['E1000', 'VMXNET3']¶
-
classmethod