btr1975 / pyats-genie-command-parse

Library to parse string output from NOS commands
MIT License
7 stars 4 forks source link

How to add new NOS types #3

Closed prathap-shetty closed 2 years ago

prathap-shetty commented 2 years ago

Hi, This lib is really good, nice work. I got two questions:

Thank you Prathap

btr1975 commented 2 years ago

Hello @vnstech

You can add other NOS's by updateing the variable 'supported_nos = {'nxos', 'ios', 'iosxe', 'iosxr'}' on line 55 of the file pyats_genie_command_parse/pyats_genie_command_parse.py

To see what all NOS's and commands these support you can look at https://developer.cisco.com/docs/genie-docs/

Really this library extracts out pyats yml requirements, and I only allowed IOS, NXOS, and IOS-XR cause those I could verify it works. Let me know how it goes.

btr1975 commented 2 years ago

Added the following to Version 1.2.7

 supported_nos = {'aireos',
                  'apic',
                  'asa',
                  'bigip',
                  'cheetah',
                  'comware',
                  'dnac',
                  'gaia',
                  'ios',
                  'iosxe',
                  'iosxr',
                  'ironware',
                  'junos',
                  'linux',
                  'nxos',
                  'sros',
                  'viptela'}
prathap-shetty commented 2 years ago

thanks, looks good