Modified status key in "show access-sessions" #756
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Modified the key in the show access-sessions parser to display the status that is shown in the command output, rather than something from a predetermined dictionary which does not indicate the status of the client.
Motivation and Context
This change was made since we had to start using show access-session instead of show authentication sessions and noticed that the status displayed was "authenticator" (role of the switch) rather than the authentication status of the client, which gave us incorrect outputs when we used parsers to check for authentication status.
The show authentication sessions parser did not have this issue.
For example:
Output:
Gi1/0/1 f4cf.beff.9cb1 dot1x DATA Auth 000000000000000BB6FC9EAF
Old:
"status": "authenticator"
New:
"status": "Auth"
Impact (If any)
Removed information about the role of the switch. This information was not present in the show authentication sessions parser, in which both commands show the same output.
Screenshots:
Checklist: