Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Conversation

@nikhilkp93
Copy link
Collaborator

@nikhilkp93 nikhilkp93 commented Oct 31, 2024

Pull Request summary:

add support for tenant level user to make API calls for mtt aaa.
currently only provider as a tenant user is able to make API calls because there are provider level calls in the existing classes that are forbidden for tenant level users.

Description of changes:

i have added 2 more classes, where we don't invoke provider level APIs.
So tenant level users can add tacacs or radius servers

Checklist:

  • Make sure to run pre-commit before committing changes
  • Make sure all checks have passed
  • PR description is clear and comprehensive
  • Mentioned the issue that this PR solves (if applicable)
  • Make sure you test the changes

Copy link
Collaborator

@renukavinay renukavinay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tenant_id is used for logging purpose. Add tenant name using the session

@nikhilkp93
Copy link
Collaborator Author

tenant_id is used for logging purpose. Add tenant name using the session

Is there an API to get the tenant name from tenant level, that I can use for this ?

sbasan
sbasan previously approved these changes Nov 2, 2024
renukavinay
renukavinay previously approved these changes Nov 6, 2024
sbasan
sbasan previously approved these changes Nov 6, 2024
renukavinay
renukavinay previously approved these changes Nov 6, 2024
Copy link
Collaborator

@renukavinay renukavinay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mock session endpoints could have been added in unittest.
otherwise lgtm

@nikhilkp93 nikhilkp93 dismissed stale reviews from renukavinay and sbasan via a7f74c0 November 6, 2024 19:09
@nikhilkp93 nikhilkp93 merged commit 91e941f into main Nov 6, 2024
11 checks passed
@nikhilkp93 nikhilkp93 deleted the tenantlevelapi branch November 6, 2024 21:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants