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

Make sensors relatable to interfaces #1558

Merged
merged 8 commits into from Sep 5, 2017

Conversation

sigmunau
Copy link
Contributor

Fixes #1211
Dependes on #1557

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
@jmbredal jmbredal self-requested a review August 15, 2017 11:24
Copy link
Collaborator

@jmbredal jmbredal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems solid

@lunkwill42 lunkwill42 self-assigned this Aug 29, 2017
Copy link
Member

@lunkwill42 lunkwill42 left a 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...

@@ -0,0 +1 @@
ALTER TABLE sensor ADD COLUMN interfaceid INTEGER REFERENCES interface;
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may indeed

@sigmunau
Copy link
Contributor Author

sigmunau commented Sep 4, 2017

Updated according to comments

@lunkwill42 lunkwill42 changed the title interface sensors Make sensors relatable to interfaces Sep 5, 2017
@lunkwill42 lunkwill42 added this to the 4.8.0 milestone Sep 5, 2017
@lunkwill42 lunkwill42 merged commit 0801cad into Uninett:master Sep 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants