sub-component of Genie that parse the device output into structured datastructure
Genie is both a library framework and a test harness that facilitates rapid development, encourages re-usability, and simplifies writing test automation. Genie bundled with the modular architecture of pyATS framework accelerates and simplifies test automation leveraging all the perks of the Python programming language in an object-orienting fashion.
pyATS is an end-to-end testing ecosystem, specializing in data-driven and reusable testing, and engineered to be suitable for Agile, rapid development iterations. Extensible by design, pyATS enables developers to start with small, simple and linear test cases, and scale towards large, complex and asynchronous test suites.
Genie was initially developed internally in Cisco, and is now available to the general public starting early 2018 through Cisco DevNet.
This is a sub-component of Genie that parses the device output into structured datastructure.
Installation guide can be found on our website.
$ pip install genie.metaparser
Change logs can be found here.
YouTube Video: https://youtube.com/watch?v=ibLNilSfdTc (Thank you! @Jmahaja1)
Once you create a new parser, don't forget to check 1, 2, and 3; if you only update the parser class without modifying/creating the schema, please check 2 and 3. - [ ] 1.
make json- [ ] 2. cd tests; and execute
python -m unittest -v- [ ] 3. create changelog for your pull request.
A few examples are added into changelog/undistributed/template.rst:
* IOS * Modified ShowVersion: * Changed , from schema to Optional. * Updated regex pattern to accommodate various outputs. * Added keys , into the schema.Please take it as a reference, and avoid to create vague logs, such as 'Updated regex.'
How to generate an unique number for file name: ```
from datetime import datetime datetime.utcnow().strftime('%Y%m%d%H%M%S') '20200807212611' ```
Copyright (c) 2020 Cisco Systems, Inc. and/or its affiliates