Skip to content

Conversation

@JoaoNovais181
Copy link

@JoaoNovais181 JoaoNovais181 commented May 12, 2025

Description:

This PR addresses an issue in the handling of Docker container network interfaces within tcconfig. Previously, the application enforced uniqueness on both ifindex and peer_ifindex for veth pairs. However, in Docker environments, while each veth pair is unique, the peer_ifindex can be the same across different containers. This incorrect assumption led to traffic control rules being applied only to the veth pair with the lexicographically first name, leaving others unconfigured.

Changes Made:

Modified the in-memory simplesql database schema to remove the uniqueness constraint on peer_ifindex.

Related Issues:

Fixes #168, fixes #104

@JoaoNovais181 JoaoNovais181 requested a review from thombashi as a code owner May 12, 2025 17:14
@JoaoNovais181 JoaoNovais181 changed the title fix error when 2 or more veth pairs share the same peer_ifindex Fix error when 2 or more veth pairs share the same peer_ifindex May 12, 2025
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.

SQLLite Error broken sqlite

1 participant