Add Klish AAA kvmtest validation with VS DUT#23
Open
devin-ai-integration[bot] wants to merge 6 commits intomasterfrom
Open
Add Klish AAA kvmtest validation with VS DUT#23devin-ai-integration[bot] wants to merge 6 commits intomasterfrom
devin-ai-integration[bot] wants to merge 6 commits intomasterfrom
Conversation
- Update sonic-mgmt-common submodule to AAA transformer branch - Update sonic-mgmt-framework submodule to AAA Klish CLI branch - Add Test stage with kvmtest_klish_aaa job using VS DUT - Reference sonic-mgmt branch with Klish AAA test cases - Pipeline: build VS image, setup testbed, run tests, publish results - Post test results as GitHub PR comment Co-Authored-By: Arthur Poon <arthur.poon@windsurf.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
…1 parse error Co-Authored-By: Arthur Poon <arthur.poon@windsurf.com>
Co-Authored-By: Arthur Poon <arthur.poon@windsurf.com>
…e whitespace Co-Authored-By: Arthur Poon <arthur.poon@windsurf.com>
…build context Co-Authored-By: Arthur Poon <arthur.poon@windsurf.com>
…ailures Co-Authored-By: Arthur Poon <arthur.poon@windsurf.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why I did it
Validates the Klish AAA CLI commands implemented in a prior session by running KVM-based tests against a Virtual Switch (VS) DUT in the Azure DevOps pipeline. The AAA implementation spans sonic-mgmt-common (transformer), sonic-mgmt-framework (Klish CLI/actioners), and sonic-mgmt (test cases).
Work item tracking
How I did it
Updated submodules to include the AAA feature code:
src/sonic-mgmt-common→ AAA transformer branch (27c22002) with OpenConfig-to-CONFIG_DB translation for AAA pathssrc/sonic-mgmt-framework→ AAA Klish CLI branch (eabe6c84) with CLI XML definitions, actioners, and renderer templatesPointed sonic-mgmt repo resource at
devin/1771309030-klish-aaa-testsbranch which containstests/klish_aaa/test_klish_aaa.py— a 780-line pytest suite covering:aaa authentication,aaa authorization,aaa accounting, and allnovariantsAdded a
Teststage (kvmtest_klish_aaajob) that:BuildVSstagevlab-01on topologyvms-kvm-t0How to verify it
BuildVSstage succeeds and produces asonic-buildimage.vsartifactTeststagekvmtest_klish_aaajob:Which release branch to backport (provide reason below if selected)
N/A - This is a new feature test, not a backport candidate.
Tested branch (Please provide the tested image version)
Description for the changelog
Add KVM-based validation tests for Klish AAA CLI commands using Virtual Switch DUT in Azure DevOps pipeline.
Link to config_db schema for YANG module changes
N/A - No YANG model changes in this PR. The AAA YANG models and transformer were implemented in the submodule branches.
This PR is NOT ready to merge as-is. It is intended to validate the AAA implementation in a test environment. Before merging:
Submodule branches must be merged first: Both
sonic-mgmt-commonandsonic-mgmt-frameworkcurrently point to unmergeddevin/feature branches. These need to be:sonic-mgmt test branch: The pipeline references
devin/1771309030-klish-aaa-testsbranch. Either:master, ORAgent prerequisites: The
sonic-buildagent pool must have:docker-sonic-mgmt:latestimage pre-loaded/data/sonic-vmand/data/sonic-mgmtpaths availableTestbed configuration: Verify
vtestbed.yamlexists in sonic-mgmt and matches the expected format forvms-kvm-t0topology.Human Review Checklist
sonic-buildagent has docker-sonic-mgmt image and KVM setupvtestbed.yamlformat matches what testbed-cli.sh expectstest_klish_aaa.pyactually cover all AAA commands from the original session?Link to Devin run: https://cisco-demo.devinenterprise.com/sessions/ca4e945629df47588becf9e972c3435a
Requested by: @arthurkkp-cog
A picture of a cute animal (not mandatory but encouraged)
🦦 (Otter - because AAA is all about authentication, authorization, and accounting... and otters are great at keeping things secure!)