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
Make sensors relatable to interfaces #1558
Conversation
…y_mib mibretriver
…entity_sensors_mib
This adds a list of sensors to the port details page Linking sensors to interfaces supported for entity_sensors mib and cisco_entity_sensors_mib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems solid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from here too, but the db definition needs some integrity rules...
sql/changes/sc.04.08.0510.sql
Outdated
@@ -0,0 +1 @@ | |||
ALTER TABLE sensor ADD COLUMN interfaceid INTEGER REFERENCES interface; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May I suggest a ON DELETE SET NULL ON UPDATE CASCADE
as part of this definition? Otherwise, interface deletion would not be possible until sensors had been removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may indeed
…base As suggested by Morten Brekkevold
Updated according to comments |
Fixes #1211
Dependes on #1557