fixing logical error
This commit is contained in:
parent
a115aac9f7
commit
b8001262dc
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue