Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions COT/platforms/cisco_nexus_9000v.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class Nexus9000v(Platform):

HARDWARE_LIMITS = Platform.HARDWARE_LIMITS.copy()
HARDWARE_LIMITS.update({
Hardware.cpus: ValidRange(1, 4),
Hardware.memory: ValidRange(8192, None),
Hardware.cpus: ValidRange(2, 4),
Hardware.memory: ValidRange(6144, None),
Hardware.nic_count: ValidRange(1, 65),
Hardware.serial_count: ValidRange(1, 1),
})
Expand Down
8 changes: 4 additions & 4 deletions COT/platforms/tests/test_cisco_nexus_9000v.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ def test_nic_name(self):

def test_cpu_count(self):
"""Test CPU count limits."""
self.assertRaises(ValueTooLowError, self.ins.validate_cpu_count, 0)
self.ins.validate_cpu_count(1)
self.assertRaises(ValueTooLowError, self.ins.validate_cpu_count, 1)
self.ins.validate_cpu_count(2)
self.ins.validate_cpu_count(4)
self.assertRaises(ValueTooHighError, self.ins.validate_cpu_count, 5)

def test_memory_amount(self):
"""Test RAM allocation limits."""
self.assertRaises(ValueTooLowError,
self.ins.validate_memory_amount, 8191)
self.ins.validate_memory_amount(8192)
self.ins.validate_memory_amount, 6143)
self.ins.validate_memory_amount(6144)
self.ins.validate_memory_amount(16384)
# No upper bound known at present

Expand Down