Skip to content

Comments

Prevent assigning of multiple IP addresses to interface#769

Open
FestplattenSchnitzel wants to merge 1 commit intodevelopfrom
single_ip
Open

Prevent assigning of multiple IP addresses to interface#769
FestplattenSchnitzel wants to merge 1 commit intodevelopfrom
single_ip

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