kuryr/kuryr/tests/unit
vikaschoudhary16 709fede534 Short-Term fix for overlapping cidrs using docker options
A quick alternative solution, until PRs to upstream Docker get accepted,
can be Docker user passing pool name to both Kuryr ipam driver and
Kuryr network driver using corresponding network and ipam options
respectively:

       $sudo docker network create --driver=kuryr --ipam-driver=kuryr \
       --subnet 10.0.0.0/16 --ip-range 10.0.0.0/24 \
       -o neutron.pool.name=neutron_pool1 \
       --ipam-opt=neutron.pool.name=neutron_pool1 \
       foo
      eddb51ebca09339cb17aaec05e48ffe60659ced6f3fc41b020b0eb506d364

Now Docker user creates another network with same cidr as the previous,
i.e 10.0.0.0/16, but with different pool name, neutron_pool2:

    $sudo docker network create --driver=kuryr --ipam-driver=kuryr \
       --subnet 10.0.0.0/16 --ip-range 10.0.0.0/24 \
       -o neutron.pool.name=neutron_pool2 \
       --ipam-opt=neutron.pool.name=neutron_pool2 \
       bar
    397badb51ebca09339cb17aaec05e48ffe60659ced6f3fc41b020b0eb506d786

At ``/IpamDriver.RequestAddress``, correct subnet will be filtered out using
corresponding pool name received from the libnetwork as explained above.

Please refer https://review.openstack.org/#/c/326894/6

TODO: unit test cases covering docker option scenario

DocImpact
Change-Id: I7090027e68e8c78219a387da66e1bd30be900ab1
Closes-bug: #1585572
2016-06-28 09:46:13 +05:30
..
__init__.py Separate unit tests from fullstack tests 2015-12-08 09:08:04 +02:00
base.py Short-Term fix for overlapping cidrs using docker options 2016-06-28 09:46:13 +05:30
test_config.py Remove mox from test_config.py 2016-06-21 12:05:14 +00:00
test_ipam_pool.py Add Docker pluggable IPAM implementation to Kuryr 2015-12-20 14:58:18 +05:30
test_join.py Waiting for Neutron port to become ACTIVE 2016-06-23 16:18:18 -04:00
test_kuryr.py Short-Term fix for overlapping cidrs using docker options 2016-06-28 09:46:13 +05:30
test_kuryr_endpoint.py Short-Term fix for overlapping cidrs using docker options 2016-06-28 09:46:13 +05:30
test_kuryr_existing_network.py Eliminate duplicate logic to generate ID's for tests 2016-05-06 20:12:58 -07:00
test_kuryr_ipam.py Short-Term fix for overlapping cidrs using docker options 2016-06-28 09:46:13 +05:30
test_kuryr_network.py Eliminate duplicate logic to generate ID's for tests 2016-05-06 20:12:58 -07:00
test_leave.py Waiting for Neutron port to become ACTIVE 2016-06-23 16:18:18 -04:00
test_utils.py Makes tap device name consistent 2016-05-17 10:37:44 -04:00