The degraded status is an additional adapter state alongside the online (connected) and offline (disconnected) statuses. This state is intended for adapters like adapter-nso and others that have multiple connection types.
Some scenarios where the degraded state applies include:
Add the following code to instances where you would like to send the adapter to the degraded state:
Add the following code to instances where the adapter is no longer degraded and the state should be removed — for example, if a second method of communication comes back online, the connection stabilizes, or a specific call succeeds:
Connect them using the default admin username and admin password.

Check the connection status from Admin Essentials → Profiles → Adapters. Status should show as “Running” and connection as “Online”.

Create a new user in NSO with the name client.

Change the Adapter NSO properties credentials to the newly created user (username and password).

Go back and check the connection status from Admin Essentials → Profiles → Adapters. Status should show as “Running” and connection as “Online”.
