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

Restrict which models will be created by Diode #190

Open
llamafilm opened this issue Nov 7, 2024 · 2 comments
Open

Restrict which models will be created by Diode #190

llamafilm opened this issue Nov 7, 2024 · 2 comments
Labels
enhancement New feature or request status: needs triage This issue is awaiting triage by a maintainer

Comments

@llamafilm
Copy link

Diode version

v0.6.0

Feature type

Change to existing functionality

Proposed feature or enhancement

I would like Diode to create new Devices, but not create new DeviceTypes. So when I throw it a big CSV file full of data, if a DeviceType doesn't already exist, it would be skipped.

Use case

DeviceTypes are more difficult to create, and this needs to be done carefully according to the manufacturer specs, such as power consumption, weight, interface count and speed, power port labels, etc. If this is done incorrectly and then Devices are created based on it, each Device would have to be fixed later.

@llamafilm llamafilm added enhancement New feature or request status: needs triage This issue is awaiting triage by a maintainer labels Nov 7, 2024
@rboucher-me
Copy link
Contributor

You would like to run Diode ingestion where a new Device would not be created if it doesn't match with an existing Device Type: is that correct? Are there other attributes and other object dependencies where you would like to have similar behaviour? (Platform to Device, comes to mind)

@llamafilm
Copy link
Author

Yes that's right. Other dependencies might include Site and Location.
Another use case is importing MAC address tables, where I would want to create Cables only if both devices already exist (matching the switch by name and the host Interface by MAC.)
I hope this could be flexible to allow customizing the import on lots of different criteria.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request status: needs triage This issue is awaiting triage by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants