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

USECASE: Add support to validate network state using csv tables #18

Open
dmulyalin opened this issue Aug 1, 2022 · 0 comments
Open
Labels
usecase Salt-Nornir Use Case

Comments

@dmulyalin
Copy link
Owner

Extend salt-nornir to validate network using data from csv table. Probably need to code support in TestsProcessor and/or create runner nr.test

For example, assuming we have this csv data:

host,interface,admin_state,line_state
R1,Eth1/1,up,up
R2,Gi0/0/0,down,down

Take above and compare with devices state and produce test results.

NAPALM has similar functionality by comparing getters output with expected output, but it accepts data in dictionary format, which might not scale well compared to csv - csv spreadsheet are easier to edit by humans as well as many systems provide export of data in csv format, allowing to extract desired state tables from them.

Another example, assuming this bgp peers table:

host,peer_ip,state
R123,10.1.2.3,established
R321,10.3.2.1,admindown

take output from devices and verify network state.

In essence, this feature will allow to define desired state of the network using tabulated data expressed in csv format. Optionally, can add support for markdown and its tables

@dmulyalin dmulyalin added the usecase Salt-Nornir Use Case label Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usecase Salt-Nornir Use Case
Projects
None yet
Development

No branches or pull requests

1 participant