Need help with genieparser?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

CiscoTestAutomation
143 Stars 109 Forks Apache License 2.0 10.5K Commits 16 Opened issues

Description

sub-component of Genie that parse the device output into structured datastructure

Services available

!
?

Need anything else?

Contributors list

published

Genie Parser

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

Installation guide can be found on our website.

$ pip install genie.metaparser

ChangeLog

Change logs can be found here.

To contributors:

Guide

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.

How to write 'changelog':

  1. 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.'
  2. 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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.