-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman network connect should support setting a static ip and mac #9883
Comments
@mheon What do you think about the db structure, could you implement this? I am pretty sure I can make the cni part happen. |
I think it's doable, but complicated. We'll need to deprecate the existing Static IP and Static MAC configuration in the DB (respect it if already configured and don't allow network connect to set static IPs on this containers, but stop generating it from now on) and move to a map of network name to static IP / static MAC and any other configuration information necessary. The DB functions for storing networks a container is joined to currently return a []string of just network names, but we should be able to patch them to return a map including this additional configuration information without much trouble. |
A friendly reminder that this issue had no activity for 30 days. |
@Luap99 Are you planning on looking at this? |
I think @mheon is currently working on the db structure. |
A friendly reminder that this issue had no activity for 30 days. |
@mheon Have you started working on this? |
Yep, but I put it down ~two weeks ago and have not found time to pick it back up. I'll try and pick it back up next week. |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
This is planed for 4.0 |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
It is currently not possible to set a static ip or mac for a second network. You can only use
--ip
and--mac
with podman run/create. podman network connect should also allow--ip
and--mac
to set the IP and MAC address for the new network.This should be possible with CNI. The more challenging problem is how we store the ip and mac address currently. It is stored as single entry per container with such a change we would need to store it per container network.
The text was updated successfully, but these errors were encountered: