cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
773
Views
0
Helpful
0
Replies
Highlighted

Applying configuration templates with pyATS

Hi All,

 

I'd like to develop a testing infra, using AEtest, in which a user can simply select a basic configuration(basic l2, basic l3, OSPF, MLAG, etc.) and apply his own configuration on top of the selected one. The testbed consist of physical switches as well as Linux VMs.

 

a. What is the best way to share configuration templates between test suites?

(I considered using the composite pattern to combine multiple template, but it doesn't seem like the most elegant solution)

b. What's the best practice to share common parts between all test cases. For example, connect all player at setup and disconnect at cleanup - Should I wrap the aetest.CommonSetup with basic functionality and let all setups to inherit from the wrapper?

This widget could not be displayed.