networkop / docker-topo

Docker topology builder for network simulations
BSD 3-Clause "New" or "Revised" License
138 stars 41 forks source link

IPAM for docker interfaces #8

Closed jorisc90 closed 5 years ago

jorisc90 commented 6 years ago

Added IPAM for docker-topo to be able to have their IP subnet the same as OOB_PREFIX. This makes it possible to reach containers using HTTPS using macvlan connections to the outside without extra configuration within the container.

networkop commented 6 years ago

looks good, just need to test it. will do it lqter this week

jorisc90 commented 6 years ago

Added extra changes which allow it to have more flexibility when configuring these networks. No impact to the current script.

networkop commented 6 years ago

I think your patch is introducing a bug. If you have more than just one "bridge" driver network, the script will crash with the following reason: docker.errors.APIError: 500 Server Error: Internal Server Error ("failed to allocate gateway (192.168.100.1): Address already in use")

This is because you can't allocate the same IPAM settings to multiple networks.

Can you help me understand what your goal is?