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

Prevent assigning of multiple IP addresses to interface #769

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

FestplattenSchnitzel
Copy link
Member

No description provided.

@ibot3
Copy link
Member

ibot3 commented Jan 13, 2025

Whats the reason for the change?

@FestplattenSchnitzel
Copy link
Member Author

When multiple IP addresses in the same subnet are assigned to an interface, hades-refresh fails as the table / view constraints are different:

Error unknown.IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "auth_dhcp_host_MAC_idx"
DETAIL:  Key ("MAC")=(35:7b:12:48:de:01) already exists.
CONTEXT:  SQL statement "INSERT INTO public.auth_dhcp_host SELECT (diff.newdata).* FROM pg_temp_8.pg_temp_16414_2 diff WHERE tid IS NULL"
[SQL: REFRESH MATERIALIZED VIEW CONCURRENTLY auth_dhcp_host]
(Background on this error at: http://sqlalche.me/e/13/gkpj)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants