Return actually reachable IP as part of the Floating IP API 22/7022/1 v5.0 v5.0.0 v5.0.1 v5.0.2 v5.0.3 v5.0.4 v5.0.5
authorschillinge <ablu@mail.uni-paderborn.de>
Mon, 3 Dec 2018 10:34:01 +0000 (11:34 +0100)
committerschillinge <ablu@mail.uni-paderborn.de>
Mon, 3 Dec 2018 10:38:28 +0000 (11:38 +0100)
commitb87991a24a3071c35560333617135d433ac16b8f
tree33f413a5fa8af01d4749cebc0e70db8c67c38d84
parent7b666c128d193fdaaa5961c6b88a1a1d27b5925f
Return actually reachable IP as part of the Floating IP API

The Floating-IP list API is only ever queried for getting the IP assigned
to a specific port (if vim-emu is added with the manual floating-ip
assignment turned off). Thus, the previous solution lead to fixed IPs being
returned (which are not reachable).

This solution tracks the assigned container for each port in order to be
able to return the public IP assigned by docker.

This is not perfect in the sense that multiple ports do not receive
different floating ips, but at least the containers are actually reachable
now.

Change-Id: I233e5de35b3b7e7350faaef017711f7c1e919fff
Signed-off-by: schillinge <ablu@mail.uni-paderborn.de>
src/emuvim/api/openstack/compute.py
src/emuvim/api/openstack/openstack_dummies/neutron_dummy_api.py
src/emuvim/api/openstack/resources/port.py