Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates and runs deterministic pyATS aetest scripts that validate interface, OSPF, BGP, ping, and compliance state with pass/fail reports.
Use this skill ↓27% 86%+59 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 6 of 22 without it.
I need to invoke pyats_run_dynamic_test to verify interface counters on device R1. Show the single-line JSON tool payload formatted with proper newline string escaping.
Structures the root payload object with key test_script.
3 of 3 safety checks passed
The pyats_run_dynamic_test tool accepts a complete Python aetest script as a string. The script is executed in a sandboxed environment with a 300-second timeout.
PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_dynamic_test '{"test_script":"<FULL PYTHON SOURCE CODE>"}'
The test_script parameter takes the entire Python source code as a single JSON string. Newlines are encoded as \n, quotes as \".
Every aetest script follows this structure:
1. Imports (logging, aetest)
2. TEST_DATA dict (all expected values as a Python literal)
3. CommonSetup class (connect to devices)
4. Testcase class(es) (test methods with assertions)
5. CommonCleanup class (disconnect)
6. if __name__ == "__main__": aetest.main()
Next to this one in the catalogue, plus more from the same author.