ytti / oxidized

Oxidized is a network device configuration backup tool. It's a RANCID replacement!
Apache License 2.0
2.74k stars 915 forks source link

Sorting configurations #124

Closed malkovitch closed 9 years ago

malkovitch commented 9 years ago

HI there !

I wanted to know if it was possible to sort configurations, like with CVS and RANCID.

This is an example of what i'm looking for :

3 devices configuration : hp_conf; cisco_conf; alcatel_conf 3 directories : CISCO, HP, ALCATEL

I would like to place each file into the appropriate directory. They will be in different location on oxidized-web.

It should look like http://localhost:8888/nodes/MY_DIRECTORY(i.e:cisco)/devices_configurations

And I want the same page (/nodes) in each directories, where i can refresh the page and update configuration.

Is it possible ?

Thanks

ytti commented 9 years ago

I think what you want are 'groups', you can pass in your node list another field 'group' which coudl then be 'cisco', 'hp', 'alcatel', 'router', 'switch', 'poland', 'lab'....

If configuration backend is 'file' then they'll go into that directory. If configuration backend is 'git' then new repo is created with that name, but there is toggle in git settings to instead use single repo with multiple directories.

malkovitch commented 9 years ago

I already tried groups but it didn't do what I expected. I'm gonna try with git then, it should do the trick !

Your tool is awesome by the way. Thank you for everything.

ytti commented 9 years ago

How didn't it do what was expected in file?

If file directory is

/foo/bar/configs/default

then if node has group, it'll go

/foo/bar/configs/group/node

if it does not have group, it'll go

/foo/bar/configs/default/node

malkovitch commented 9 years ago

That's not what I meant ^^

Files go in /foo/bar/configs/group/node it works fine. But I want to see those folders on the web interface with files inside.

When I go on the web interface I can see all devices configurations in http://@IP:8888/nodes. I don't want this.

What I want looks like this :

image

image

So i can navigate through folders and see my files.

ytti commented 9 years ago

Ok. I think this should be filed in oxidized-web. Quick solution would be to use git and periodically push repo to something like gitlab or github, to get extensive GUI support for blame etc.

malkovitch commented 9 years ago

Ok i'm gonna try this.

Thanks

malkovitch commented 9 years ago

I'v another question, how many devices can oxidized handle at the same time ? I'm gonna try this on ~500 devices at the beginning. Should I be worried about decreased performances and/or high traffic on my network ?

ytti commented 9 years ago

Dunno, I've ran it with 3k or so devices.