kuryr-libnetwork/kuryr_libnetwork
Louise Daly 56d288f508
Move interface creation and deletion
The current implementation calls interface create/delete in
NetworkDriver.Join/NetworkDriver.Leave but Docker has been observed to
release the interface to the default namespace in
NetworkDriver.DeleteEndpoint. This would suggest in order to be
compliant with Docker Libnetwork, interface creation and deletion should
be done in NetworkDriver.CreateEndpoint and NetworkDriver.DeleteEndpoint

Please note that while the implementation before this patch works anyway
for vEth pairs, it is not compatible with other interface types (e.g.
IPVlan) as it would be impossible for Kuryr to delete the endpoint until
Docker moves it to the default namespace

This patch moves the current interface creation/deletion from
NetworkDriver.Join/NetworkDriver.Leave to
NetworkDriver.CreateEndpoint/NetworkDriver.DeleteEndpoint

_create_or_update port was refactored to return the neutron_port and
subnets associated with the interface_cidr, the interface_response
message creation has been moved to NetworkDriver.CreateEndpoint

DocImpact
Co-Authored-By: Marco Chiappero <marco.chiappero@intel.com>
Change-Id: I84999989cec34a2a5b5cd2821155f150223c84cc
2016-12-02 10:30:23 +01:00
..
schemata Implement get endpoint operational info 2016-09-19 17:31:46 +08:00
tests Move interface creation and deletion 2016-12-02 10:30:23 +01:00
__init__.py versioning: let pbr handle versioning from tags 2016-08-18 10:50:14 +02:00
config.py Merge "auth: Add keystonev3 support" 2016-09-14 08:04:05 +00:00
constants.py Using kuryr-lib constants 2016-09-24 21:43:19 +08:00
controllers.py Move interface creation and deletion 2016-12-02 10:30:23 +01:00
opts.py auth: Add keystonev3 support 2016-09-13 08:18:53 +02:00
server.py call start in sys.exit(start()) instead of start() 2016-09-26 10:13:55 +05:30
utils.py Move kuryr_libnetwork/common/* to kuryr_libnetwork 2016-09-03 13:40:24 +05:30