STORDIS / orca_backend

ORCA Backend is a REST API server written using Django framework to access orca_nw_lib functionalities. It is a backend service that can be used by applications to interact with SONiC Network and devices.
https://stordis.github.io/
Apache License 2.0
2 stars 3 forks source link

Incorrect status code on discovery failure #56

Open rahul-1475 opened 1 month ago

rahul-1475 commented 1 month ago

Discovery Status Code Issue

When a failure occurs during the discovery process, the status code returned is 100 instead of the expected 500.

Example

{
    "address": "10.10.229.88",
    "discover_from_config": true
}

The status code returned is 100, even when fails to discover the IP address 10.10.229.88.