F5Networks / f5-declarative-onboarding

F5 BIG-IP Declarative Onboarding
Apache License 2.0
58 stars 22 forks source link

DO inspect returns invalid role for class RemoteAuthRole #347

Open neuliuyin opened 1 year ago

neuliuyin commented 1 year ago

Environment

Summary

When you do a inspect to get the current declaration of a BIG-IP device, DO returns incorrect values for role and console of RemoteAuthRole.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Configuration remote authentication.
  2. Create a remote group and assign the Administrator role
  3. Create another remote group and disable console access.
  4. Send a GET request to https://<mgmt-ip-of-big-ip>/mgmt/shared/declarative-onboarding/inspect
  5. Check the role and console value of RemoteAuthRole class in the response:

Expected Behavior

The declaration returned by inspect should comply with the json schema of DO.

Actual Behavior

The declaration returned by inspect does not comply with the json schema of DO. When you post the declaration from inspect, you will see error message.