Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device tracking for automatic variable substitution in YMLs #124

Open
javierb10 opened this issue Feb 1, 2021 · 2 comments
Open

Device tracking for automatic variable substitution in YMLs #124

javierb10 opened this issue Feb 1, 2021 · 2 comments
Assignees
Labels
Medium Priority to do.

Comments

@javierb10
Copy link
Collaborator

Detection of the name of the variables needed for all tests from the GET operation, and automatic application in the respective YML.

@crcampos612 crcampos612 self-assigned this Feb 11, 2021
@crcampos612
Copy link
Collaborator

crcampos612 commented Feb 12, 2021

A possible enhancement would consist on the execution of a get operation to list all components and type for each vendor device. From the response, a component of each type could be use to fill in the related variable in the YML file for testing that component associated parameters. For example:

Sending:
image

Received:
image

YML FILE FOR CPU TYPE COMPONENT

  • testcase:
    name: hw_cpu_avg
    id: 1
    description: >
    This test is to get the cpu avg of components.
    rpcs:
    - template: hw_cpu_avg.xml
    operation: get
    params:
    name: "CPU0:CORE0"
    avg: ""

XML FILE FOR CPU AVERAGE PARAMETER TESTING AFTER VBLE SUBSTITUTION

<get>
<filter>
<components xmlns="http://openconfig.net/yang/platform">
<component>
<name>CPU0:CORE0
<cpu>
<utilization xmlns="http://openconfig.net/yang/platform/cpu">
<state>
<avg>
</state>
</utilization>
</cpu>
</component>
</components>
</filter>
</get>

@danielhbar danielhbar added the Medium Priority to do. label Feb 16, 2021
@alfredogonzalezmuniz
Copy link
Collaborator

Old issue 17. Use generate_yaml to create new files using variables from device.
Enhancement: Obtain XML with response (names nad interfaces) directly using RPCautomator instead using and offline XML obtained with YANG suite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Medium Priority to do.
Projects
None yet
Development

No branches or pull requests

7 participants