fixing logical error

This commit is contained in:
areeqakbr 2025-06-23 11:13:27 +07:00
parent a115aac9f7
commit b8001262dc
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ func (u *backboneUseCase) CreateBackbone(backbone req.BackboneDTO) error {
} }
// Validate port availability - each backbone uses 1 port regardless of core amount // Validate port availability - each backbone uses 1 port regardless of core amount
if startDevicePort.PortAvailable < 1 { if startDevicePort.PortAvailable < 1 && startDevice.DeviceType == "OTB" {
return fmt.Errorf("start device has no available ports (available: %d, required: 1)", return fmt.Errorf("start device has no available ports (available: %d, required: 1)",
startDevicePort.PortAvailable) startDevicePort.PortAvailable)
} }