netreplica / nrx

Netreplica Exporter
Apache License 2.0
87 stars 15 forks source link

Allow multi-site export #84

Closed scotho3 closed 9 months ago

scotho3 commented 12 months ago

Having a single site is nice, but for backbones or other large interconnected networks, having a single topology showing all sites, or multiple sites would be helpful.

bortok commented 12 months ago

Scott, could you propose how the CLI command would look like? Also, if the sites are disconnected (two or more graphs) would that change anything in the export logic? Note, today nrx does not export standalone devices (w/o connections to other devices in the same export group).

scotho3 commented 12 months ago

./nrx.py --sites site1,site2,site3 ... was what I had in mind.

The primary change is just making nb_site into a list named nb_sites

If they're not connected, they're not connected, I think the default behavior for standalone devices is fine, although I could make an argument for showing them.

https://github.com/scotho3/nrx - is an example.

bortok commented 12 months ago

Thomas, if you would create a PR, I shall be able to test it next weekend and give more feedback. Thank you for the suggestion!

bortok commented 11 months ago

Hi @scotho3 , would you be able to create a PR for this?

scotho3 commented 11 months ago

Hi @bortok - sorry, I was away from my email for an extended holiday, PR has been opened.