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

seed data #176

Closed
peelman opened this issue Jul 1, 2016 · 4 comments
Closed

seed data #176

peelman opened this issue Jul 1, 2016 · 4 comments
Labels
type: feature Introduction of new functionality to the application

Comments

@peelman
Copy link
Contributor

peelman commented Jul 1, 2016

From a first-install stand point, there really should be some seed data added. For starters:

  • RIRs (the five big, plus RFC1918/6598).
  • RFC1918 Aggregates (keeping in mind the user is free to delete whatever they want)
  • Generic Prefix/VLAN Roles
  • Generic Device Roles
  • Generic Circuit Types
  • Common Platforms (JunOS, IOS, NX-OS, etc)

Please add more or debate as you see fit...I assume this was already a Todo somewhere, but I couldn't find reference to it in an existing issue.

@ryanmerolle
Copy link
Contributor

Mentioned it #148, but I did not list out as clearly as your issue. I also went into some discussion on an updated demo site for group testing. It probably makes sense to close out my issue given the demo is hosted on Stretch's blog and your issue better illustrates the seed data types required.

@Gelob
Copy link
Contributor

Gelob commented Jul 3, 2016

Some of the idea discussion about this on IRC was that we could have a separate community maintained repo with that information and users could pull it down via a simple JSON import or such into netbox.

@peelman
Copy link
Contributor Author

peelman commented Jul 5, 2016

So instead of either an automatic step or an elected additional step during during deployment, the admin would need to do a series of imports (either at the command line or in the web interface) to load the seed data? Yuk.

Especially for things like the default RIRs, I'd argue that should be baked in as part of the initial migration. Those are going to be very static in terms of seed data. Same goes for the RFC1918 aggregates. Again, if the admin elects to remove them for simplicity or their own eccentricities, super, that's why its just seed data and not hard coded.

From a usability standpoint, out-of-the-netbox NetBox isn't usable because you have to spend 30 minutes figuring out where you need to add a bunch of dependencies before you can start adding infrastructure bits. I get that we are all UNIX nerds, but lets not make life more difficult than it needs to be, just because we are used to it.

@jeremystretch
Copy link
Member

I think the JSON piece @Gelob referred to might have been my remark about starting an external library to hold DeviceType definitions, from which a user could import only the ones they care about. This would be totally separate from any seed data for initial installs (unless I'm misunderstanding).

I'd love to have some seed data. FYI Django calls these "fixtures" and they can be defined in either JSON or YAML.

@jeremystretch jeremystretch added type: feature Introduction of new functionality to the application and removed feature request labels Aug 1, 2016
if-fi pushed a commit to if-fi/netbox that referenced this issue Oct 1, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

4 participants