)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"3b99cc09f2ce84fd51382a6b5b1c4fe7dfa9dda9","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This document captures the changes needed to add an IPAM"},{"line_number":10,"context_line":"driver to neutron."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This change updates documents with comments from the review."},{"line_number":13,"context_line":"Change-Id: I100950a2257ad3d68b0cd924124e4cfdcc9ddffc"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5aef4532_efccc936","line":12,"range":{"start_line":12,"start_character":0,"end_line":12,"end_character":60},"updated":"2016-03-10 16:03:51.000000000","message":"This sentence is unnecessary.","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"}],"doc/source/devref/images/IPAM-driver-class-diagram.png":[{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"3e82446a41394c7f4c46f194c3bd30e705527196","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"3afc51ec_df24ffb0","updated":"2016-03-11 11:33:14.000000000","message":"It would be good to add a key to this diagram to explain what the different colors mean.\n\nIn particular, I think green indicates the subclasses that someone writing a host-aware driver would have to create.  For someone coming new to the pluggable IPAM infrastructure, I think it will be important to distinguish between those subclasses and the classes that already exist.","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"}],"doc/source/devref/images/IPAM-driver-class-diagram2.png":[{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"3e82446a41394c7f4c46f194c3bd30e705527196","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"3afc51ec_7f4b2b5a","updated":"2016-03-11 11:33:14.000000000","message":"Please also add a key here.","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"}],"doc/source/devref/images/host-aware-IPAM-driver-flow.png":[{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"3e82446a41394c7f4c46f194c3bd30e705527196","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"3afc51ec_5fe46f3a","updated":"2016-03-11 11:33:14.000000000","message":"1. In the column title \"Pluggable IPM Interface/Framework\", \"IPM\" should be \"IPAM\".\n\n2. I\u0027m not sure I understand the \u0027get_instance\u0027 call.  Does the Framework call a \u0027get_instance\u0027 method in the Driver?  If so, can you add an arrow on the right hand end of the line, to indicate this?","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"}],"doc/source/devref/ipam_driver.rst":[{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"a25c4a785d03f29688b7da65a965f1ba92bc5ed9","unresolved":false,"context_lines":[{"line_number":1,"context_line":".."},{"line_number":2,"context_line":" This work is licensed under a Creative Commons Attribution 3.0 Unported"},{"line_number":3,"context_line":" License."},{"line_number":4,"context_line":""},{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"IPAM Pluggable Drivers"},{"line_number":8,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":1,"id":"5aef4532_e2c76543","line":5,"range":{"start_line":1,"start_character":0,"end_line":5,"end_character":53},"updated":"2016-03-08 06:02:32.000000000","message":"Creative Common? Use apach license header.\n\n\n..\n      Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n      not use this file except in compliance with the License. You may obtain\n      a copy of the License at\n\n          http://www.apache.org/licenses/LICENSE-2.0\n\n      Unless required by applicable law or agreed to in writing, software\n      distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n      WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n      License for the specific language governing permissions and limitations\n      under the License.\n\n\n      Convention for heading levels in Neutron devref:\n      \u003d\u003d\u003d\u003d\u003d\u003d\u003d  Heading 0 (reserved for the title in a document)\n      -------  Heading 1\n      ~~~~~~~  Heading 2\n      +++++++  Heading 3\n      \u0027\u0027\u0027\u0027\u0027\u0027\u0027  Heading 4\n      (Avoid deeper levels because they do not render well.)","commit_id":"427a6a37a6348a2a5684398276d27f9b67c66227"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"a25c4a785d03f29688b7da65a965f1ba92bc5ed9","unresolved":false,"context_lines":[{"line_number":10,"context_line":"IPAM supports a pluggable driver model. This allows contributors to add new"},{"line_number":11,"context_line":"IPAM drivers and others to use third-party IPAM drivers."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":""},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Configuration"},{"line_number":16,"context_line":"-------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"5aef4532_828f8122","line":13,"range":{"start_line":13,"start_character":0,"end_line":13,"end_character":0},"updated":"2016-03-08 06:02:32.000000000","message":"Remove useless spaces.","commit_id":"427a6a37a6348a2a5684398276d27f9b67c66227"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"a25c4a785d03f29688b7da65a965f1ba92bc5ed9","unresolved":false,"context_lines":[{"line_number":29,"context_line":"enabled.The IPAM Driver defines classes that the pluggable IPAM driver will"},{"line_number":30,"context_line":"need to manage IP addresses and subnet pools."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"The classes:"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"class NeutronDbSubnet(ipam_base.Subnet)"},{"line_number":35,"context_line":" Manages IP addressess for the Neutron DB IPAM driver"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"class NeutronDbPool(subnet_alloc.SubnetAllocator)"},{"line_number":38,"context_line":" Subnet pools backed by Neutron Database"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Pluggable IPAM Interface/Framework"}],"source_content_type":"text/x-rst","patch_set":1,"id":"5aef4532_627eb5e5","line":38,"range":{"start_line":32,"start_character":0,"end_line":38,"end_character":40},"updated":"2016-03-08 06:02:32.000000000","message":"Is the following what you want?\n\nThe classes:\n\n::\n\n class NeutronDbSubnet(ipam_base.Subnet)\n \"\"\"Manages IP addressess for the Neutron DB IPAM driver\"\"\"\n\n class NeutronDbPool(subnet_alloc.SubnetAllocator)\n \"\"\"Subnet pools backed by Neutron Database\"\"\"","commit_id":"427a6a37a6348a2a5684398276d27f9b67c66227"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"3e82446a41394c7f4c46f194c3bd30e705527196","unresolved":false,"context_lines":[{"line_number":38,"context_line":"IPAM Driver"},{"line_number":39,"context_line":"-----------"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"This is the default IPAM driver when the default non-pluggable IPAM is"},{"line_number":42,"context_line":"enabled.The IPAM Driver defines classes that the pluggable IPAM driver will"},{"line_number":43,"context_line":"need to manage IP addresses and subnet pools."},{"line_number":44,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3afc51ec_7f1a0b19","line":41,"updated":"2016-03-11 11:33:14.000000000","message":"Is there some terminology other than \u0027IPAM driver\u0027 that you can use to indicate the relevant non-pluggable IPAM code?  Perhaps \u0027Non-pluggable IPAM classes\u0027?","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"3e82446a41394c7f4c46f194c3bd30e705527196","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"This is the default IPAM driver when the default non-pluggable IPAM is"},{"line_number":42,"context_line":"enabled.The IPAM Driver defines classes that the pluggable IPAM driver will"},{"line_number":43,"context_line":"need to manage IP addresses and subnet pools."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"The classes:"},{"line_number":46,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3afc51ec_ffaf3b7b","line":43,"updated":"2016-03-11 11:33:14.000000000","message":"How about instead: \"The IPAM code in core Neutron includes the following classes that are used by the non-pluggable IPAM implementation, and also likely to be useful for pluggable IPAM drivers.\"  (Is that a correct statement?)","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"3b99cc09f2ce84fd51382a6b5b1c4fe7dfa9dda9","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"The classes:"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"class NeutronDbSubnet(ipam_base.Subnet)"},{"line_number":48,"context_line":"\"\"\"Manages IP addressess for the Neutron DB IPAM driver\"\"\""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"class NeutronDbPool(subnet_alloc.SubnetAllocator)"},{"line_number":51,"context_line":"\"\"\"Subnet pools backed by Neutron Database\"\"\""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Pluggable IPAM Interface/Framework"},{"line_number":54,"context_line":"----------------------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5aef4532_6f3d592a","line":51,"range":{"start_line":47,"start_character":0,"end_line":51,"end_character":45},"updated":"2016-03-10 16:03:51.000000000","message":"To make code format, refer https://raw.githubusercontent.com/openstack/neutron/master/doc/source/devref/callbacks.rst","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"3e82446a41394c7f4c46f194c3bd30e705527196","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"class NeutronDbPool(subnet_alloc.SubnetAllocator)"},{"line_number":51,"context_line":"\"\"\"Subnet pools backed by Neutron Database\"\"\""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"Pluggable IPAM Interface/Framework"},{"line_number":54,"context_line":"----------------------------------"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3afc51ec_7fdb2b1c","line":52,"updated":"2016-03-11 11:33:14.000000000","message":"Are these classes that the pluggable IPAM framework already uses?  Or are you saying that pluggable IPAM drivers might want to use these classes?","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"dca1fbbb85b26ed44235f13483c9edbbb5fcad0b","unresolved":false,"context_lines":[{"line_number":53,"context_line":"Pluggable IPAM Interface/Framework"},{"line_number":54,"context_line":"----------------------------------"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"The interface code will load the IPAM driver based on the configuration.  "},{"line_number":57,"context_line":"This code will also define the interface classes that the pluggable IPAM "},{"line_number":58,"context_line":"driver will need. The pluggable IPAM driver will need to get existing IP"},{"line_number":59,"context_line":"information that is stored in the Neutron DB."}],"source_content_type":"text/x-rst","patch_set":2,"id":"5aef4532_5df8fb49","line":56,"updated":"2016-03-11 04:27:40.000000000","message":"nits: trailing spaces..","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"3e82446a41394c7f4c46f194c3bd30e705527196","unresolved":false,"context_lines":[{"line_number":53,"context_line":"Pluggable IPAM Interface/Framework"},{"line_number":54,"context_line":"----------------------------------"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"The interface code will load the IPAM driver based on the configuration.  "},{"line_number":57,"context_line":"This code will also define the interface classes that the pluggable IPAM "},{"line_number":58,"context_line":"driver will need. The pluggable IPAM driver will need to get existing IP"},{"line_number":59,"context_line":"information that is stored in the Neutron DB."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3afc51ec_bf9493e8","line":56,"in_reply_to":"5aef4532_5df8fb49","updated":"2016-03-11 11:33:14.000000000","message":"Please say framework here rather than interface.  Any piece of code must be either \u0027framework\u0027, which means part of core Neutron, or \u0027driver\u0027, which means a pluggable IPAM driver that anyone could write.  The \u0027interface\u0027 is the interaction between \u0027framework\u0027 and \u0027driver\u0027.\n\nAlso please write in present tense, i.e. remove the \"will\"s.\n\nAlso please give more detail here, along the lines:\n\nAvailable pluggable IPAM drivers are defined by the \u0027neutron.ipam_drivers\u0027 entry point space.  Core Neutron provides the \u0027fake\u0027 and \u0027internal\u0027 drivers::\n\nneutron.ipam_drivers \u003d\n    fake \u003d neutron.tests.unit.ipam.fake_driver:FakeDriver\n    internal \u003d neutron.ipam.drivers.neutrondb_ipam.driver:NeutronDbPool\n\nOther projects can provide their own IPAM drivers by adding their own entries to this space.","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"3e82446a41394c7f4c46f194c3bd30e705527196","unresolved":false,"context_lines":[{"line_number":83,"context_line":"\"\"\"Interface definition for an IPAM subnet\"\"\""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Pluggable IPAM Driver (new driver)"},{"line_number":87,"context_line":"----------------------------------"},{"line_number":88,"context_line":"Users will be able to plug their own IPAM driver implementation instead of"},{"line_number":89,"context_line":"using the default one. In order to allocate IPs, the pluggable IPAM Driver"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3afc51ec_221d0a10","line":86,"updated":"2016-03-11 11:33:14.000000000","message":"Do you mean \u0027Writing a New Pluggable IPAM Driver\u0027?","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"dca1fbbb85b26ed44235f13483c9edbbb5fcad0b","unresolved":false,"context_lines":[{"line_number":88,"context_line":"Users will be able to plug their own IPAM driver implementation instead of"},{"line_number":89,"context_line":"using the default one. In order to allocate IPs, the pluggable IPAM Driver"},{"line_number":90,"context_line":"needs to know what IP ranges are available for allocation and which IP"},{"line_number":91,"context_line":"addresses have already been allocated out of the range.  The Neutron DB is "},{"line_number":92,"context_line":"used to store the IP information and other information that is needed to"},{"line_number":93,"context_line":"allocate and assign IPs."},{"line_number":94,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"5aef4532_9d98c31d","line":91,"updated":"2016-03-11 04:27:40.000000000","message":"ditto","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"3e82446a41394c7f4c46f194c3bd30e705527196","unresolved":false,"context_lines":[{"line_number":106,"context_line":"     (Pluggable IPAM Interface/Framework)"},{"line_number":107,"context_line":"       class Pool"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"2. Get Host information"},{"line_number":110,"context_line":"     (HostAware IPAM driver)"},{"line_number":111,"context_line":"       class HostAwareDbPool"},{"line_number":112,"context_line":"       class HostAwareAddressRequestFactory"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3afc51ec_a22f5af5","line":109,"updated":"2016-03-11 11:33:14.000000000","message":"Can you say more about what \u0027Get Host information\u0027 means?","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"3e82446a41394c7f4c46f194c3bd30e705527196","unresolved":false,"context_lines":[{"line_number":110,"context_line":"     (HostAware IPAM driver)"},{"line_number":111,"context_line":"       class HostAwareDbPool"},{"line_number":112,"context_line":"       class HostAwareAddressRequestFactory"},{"line_number":113,"context_line":"       class HostAwareAnyAddressRequest"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"     Send request to Neutron DB for host information"},{"line_number":116,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"3afc51ec_82f21e99","line":113,"updated":"2016-03-11 11:33:14.000000000","message":"So here we have 3 new classes that the IPAM driver has to write.  I would hope that a future revision of this document will say more about how the writer should write those classes, what methods he/she needs to provide, etc.","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"3e82446a41394c7f4c46f194c3bd30e705527196","unresolved":false,"context_lines":[{"line_number":143,"context_line":"Summary/Conclusions"},{"line_number":144,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":145,"context_line":"In order for the HostAware IPAM driver to get host information, several"},{"line_number":146,"context_line":"classes in the IPAM framework would have to be subclassed."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3afc51ec_82c4de40","line":146,"updated":"2016-03-11 11:33:14.000000000","message":"I\u0027m not sure this section adds anything.  If it\u0027s useful to give a summary about \u0027Here\u0027s what you need to do when writing a new IPAM driver\u0027, I think it would be better to put that at the start of the previous section, instead of afterwards here.","commit_id":"8a8498e1aa7a1d674fd8ed460af8e5c665f1eed0"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"69cf834240f552eae6f2db6cd3b7e68cf1fb4d5c","unresolved":false,"context_lines":[{"line_number":42,"context_line":"following classes are used in the non-pluggable IPAM implementation, and"},{"line_number":43,"context_line":"and are likely to be useful for pluggable IPAM drivers:"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"class NeutronDbSubnet(ipam_base.Subnet)"},{"line_number":46,"context_line":"\"\"\"Manages IP addressess for the Neutron DB IPAM driver\"\"\""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"class NeutronDbPool(subnet_alloc.SubnetAllocator)"},{"line_number":49,"context_line":"\"\"\"Subnet pools backed by Neutron Database\"\"\""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"Pluggable IPAM Framework"},{"line_number":52,"context_line":"------------------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1af94dfe_0f55271c","line":49,"range":{"start_line":45,"start_character":0,"end_line":49,"end_character":45},"updated":"2016-03-17 05:45:29.000000000","message":"::\n\n    class NeutronDbSubnet(ipam_base.Subnet)\n    \"\"\"Manages IP addressess for the Neutron DB IPAM driver\"\"\"\n\n    class NeutronDbPool(subnet_alloc.SubnetAllocator)\n    \"\"\"Subnet pools backed by Neutron Database\"\"\"","commit_id":"eeb57ce7dbee6c3db3047dbf654e08f7b1d2ce08"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"69cf834240f552eae6f2db6cd3b7e68cf1fb4d5c","unresolved":false,"context_lines":[{"line_number":56,"context_line":"1) Loading the IPAM driver based on the configuration.  The available"},{"line_number":57,"context_line":"   pluggable IPAM drivers are defined by the \u0027neutron.ipam_drivers\u0027"},{"line_number":58,"context_line":"   entry point space. The core Neutron code provides the \u0027fake\u0027"},{"line_number":59,"context_line":"   and \u0027internal\u0027 drivers::"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"   neutron.ipam_drivers \u003d"},{"line_number":62,"context_line":"       fake \u003d neutron.tests.unit.ipam.fake_driver:FakeDriver"},{"line_number":63,"context_line":"       internal \u003d neutron.ipam.drivers.neutrondb_ipam.driver:NeutronDBPool"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1af94dfe_af451371","line":61,"range":{"start_line":59,"start_character":18,"end_line":61,"end_character":25},"updated":"2016-03-17 05:45:29.000000000","message":"and \u0027internal\u0027 drivers:\n\n::\n\n    neutron.ipam_drivers \u003d","commit_id":"eeb57ce7dbee6c3db3047dbf654e08f7b1d2ce08"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"69cf834240f552eae6f2db6cd3b7e68cf1fb4d5c","unresolved":false,"context_lines":[{"line_number":68,"context_line":"2) Defining the classes that the pluggable IPAM driver will need to get"},{"line_number":69,"context_line":"   existing IP information that is stored in the Neutron DB."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"   The classes::"},{"line_number":72,"context_line":"   class SubnetAllocator (driver.Pool)"},{"line_number":73,"context_line":"   \"\"\"Handles allocation of subnet prefixes from a subnet pool\"\"\""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"   class Pool(object)"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1af94dfe_0f7ec7ad","line":72,"range":{"start_line":71,"start_character":3,"end_line":72,"end_character":38},"updated":"2016-03-17 05:45:29.000000000","message":"The classes:\n\n::\n\n    class SubnetAllocator (driver.Pool)","commit_id":"eeb57ce7dbee6c3db3047dbf654e08f7b1d2ce08"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"69cf834240f552eae6f2db6cd3b7e68cf1fb4d5c","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"Writing a new Pluggable IPAM Driver"},{"line_number":98,"context_line":"----------------------------------_"},{"line_number":99,"context_line":"Users will be able to plug their own IPAM driver implementation instead of"},{"line_number":100,"context_line":"using the default one. In order to allocate IPs, the pluggable IPAM Driver"},{"line_number":101,"context_line":"needs to know what IP ranges are available for allocation and which IP"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1af94dfe_6f64ab21","line":98,"range":{"start_line":98,"start_character":34,"end_line":98,"end_character":35},"updated":"2016-03-17 05:45:29.000000000","message":"\"-\" not \"_\"","commit_id":"eeb57ce7dbee6c3db3047dbf654e08f7b1d2ce08"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"69cf834240f552eae6f2db6cd3b7e68cf1fb4d5c","unresolved":false,"context_lines":[{"line_number":166,"context_line":"           get_request(cls,context, subnet, subnetpool):"},{"line_number":167,"context_line":"           \"\"\"Return HostAwareAnySubnetRequest\""},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"..  image:: /images/host-aware-IPAM-driver-flow.png"},{"line_number":170,"context_line":".. :alt: Screenshot: \"Host aware IPAM driver flow\""},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"..  image:: /IPAM-driver-class-diagram.png"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1af94dfe_0f9087eb","line":169,"range":{"start_line":169,"start_character":12,"end_line":169,"end_character":51},"updated":"2016-03-17 05:45:29.000000000","message":"The images isn\u0027t in root.\n\nimages/host-aware-IPAM-driver-flow.png","commit_id":"eeb57ce7dbee6c3db3047dbf654e08f7b1d2ce08"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"69cf834240f552eae6f2db6cd3b7e68cf1fb4d5c","unresolved":false,"context_lines":[{"line_number":169,"context_line":"..  image:: /images/host-aware-IPAM-driver-flow.png"},{"line_number":170,"context_line":".. :alt: Screenshot: \"Host aware IPAM driver flow\""},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"..  image:: /IPAM-driver-class-diagram.png"},{"line_number":173,"context_line":".. alt: Screenshot: \"Host Aware IPAM driver class diagram\""},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"..  image:: /IPAM-driver-class-diagram2.png"}],"source_content_type":"text/x-rst","patch_set":4,"id":"1af94dfe_afb7d384","line":172,"range":{"start_line":172,"start_character":12,"end_line":172,"end_character":42},"updated":"2016-03-17 05:45:29.000000000","message":"images/IPAM-driver-class-diagram.png","commit_id":"eeb57ce7dbee6c3db3047dbf654e08f7b1d2ce08"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"69cf834240f552eae6f2db6cd3b7e68cf1fb4d5c","unresolved":false,"context_lines":[{"line_number":172,"context_line":"..  image:: /IPAM-driver-class-diagram.png"},{"line_number":173,"context_line":".. alt: Screenshot: \"Host Aware IPAM driver class diagram\""},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"..  image:: /IPAM-driver-class-diagram2.png"},{"line_number":176,"context_line":".. alt: Screenshot: \"Host Aware IPAM driver class diagram \""},{"line_number":177,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"1af94dfe_cfacdf37","line":175,"range":{"start_line":175,"start_character":13,"end_line":175,"end_character":43},"updated":"2016-03-17 05:45:29.000000000","message":"images/IPAM-driver-class-diagram2.png","commit_id":"eeb57ce7dbee6c3db3047dbf654e08f7b1d2ce08"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"2882c0ec38b5fa7ba3f3dcdc11a3d1e143e0e01b","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    \"\"\"Manages IP addressess for the Neutron DB IPAM driver\"\"\""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    class NeutronDbPool(subnet_alloc.SubnetAllocator)"},{"line_number":49,"context_line":"    \"\"\"Subnet pools backed by Neutron Database\"\"\""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"Pluggable IPAM Framework"},{"line_number":52,"context_line":"------------------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_267c50b4","line":49,"updated":"2016-06-01 11:27:37.000000000","message":"I think this is wrong.  As far as I can see in the current master code, NeutronDbSubnet and NeutronDbPool are not used by the non-pluggable IPAM code.\n\nOf course, it is possible that this has changed since you first wrote the text above!  But the documentation should always match the current code.\n\n(And, as you write just below, NeutronDbPool _is_ the default _pluggable_ IPAM driver, and is located under neutron.ipam.drivers, so it would be surprising if it was also used by the non-pluggable IPAM code.)","commit_id":"9f8f513f97aa4f1c78c097ca3451d2681406a03b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"2882c0ec38b5fa7ba3f3dcdc11a3d1e143e0e01b","unresolved":false,"context_lines":[{"line_number":66,"context_line":"   entries to this space"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"2) Defining the classes that the pluggable IPAM driver will need to get"},{"line_number":69,"context_line":"   existing IP information that is stored in the Neutron DB."},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"   The classes:"},{"line_number":72,"context_line":"   ::"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_ecc22784","line":69,"updated":"2016-06-01 11:27:37.000000000","message":"I believe that there are some of these classes that a driver would typically use as they are, and others that a driver would have to subclass.  Is that correct?  Could you say more about those options?","commit_id":"9f8f513f97aa4f1c78c097ca3451d2681406a03b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"2882c0ec38b5fa7ba3f3dcdc11a3d1e143e0e01b","unresolved":false,"context_lines":[{"line_number":80,"context_line":"       \"\"\"Builds request using ip information\"\"\""},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"       class AnyAddressRequest (object)"},{"line_number":83,"context_line":"       \"\"\"Base class for address requests\"\"\""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"       class SubnetRequest(object)"},{"line_number":86,"context_line":"       \"\"\"Carriers the data needed to make a subnet request\"\"\""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_cc0e43e4","line":83,"updated":"2016-06-01 11:27:37.000000000","message":"Can you say more about what an address request object means, e.g. what information it contains, and the role it plays in the allocation process?","commit_id":"9f8f513f97aa4f1c78c097ca3451d2681406a03b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"2882c0ec38b5fa7ba3f3dcdc11a3d1e143e0e01b","unresolved":false,"context_lines":[{"line_number":83,"context_line":"       \"\"\"Base class for address requests\"\"\""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"       class SubnetRequest(object)"},{"line_number":86,"context_line":"       \"\"\"Carriers the data needed to make a subnet request\"\"\""},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"       class AnySubnetRequest(SubnetRequest)"},{"line_number":89,"context_line":"       \"\"\"A template for allocating an unspecified subnet from IPAM\"\"\""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_8c8b9b1e","line":86,"updated":"2016-06-01 11:27:37.000000000","message":"Similarly for subnet request objects.\n\nIf you don\u0027t know, and don\u0027t think you will have time to find out, an alternative would be to write something like this:\n\n\"FIXME - someone should add doc here to explain what a subnet request object means, what information it contains, and the role that it plays in the allocation process.\"\n\nThen there is a motivation and clear place marker for someone else to come in and provide that information later on.","commit_id":"9f8f513f97aa4f1c78c097ca3451d2681406a03b"},{"author":{"_account_id":13734,"name":"Nell Jerram","email":"nell@tigera.io","username":"neiljerram"},"change_message_id":"2882c0ec38b5fa7ba3f3dcdc11a3d1e143e0e01b","unresolved":false,"context_lines":[{"line_number":105,"context_line":"allocate and assign IPs."},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"For the sake of discussion, let\u0027s consider a pluggable IPAM driver where the"},{"line_number":108,"context_line":"IP allocations depend on the compute host that the Nova chooses for the VM."},{"line_number":109,"context_line":"Let\u0027s call this driver the HostAware IPAM driver."},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"The following flow describes the steps for allocating IPs with the"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9abb7d3a_8c66fb27","line":108,"updated":"2016-06-01 11:27:37.000000000","message":"should be just \"Nova\", not \"the Nova\".","commit_id":"9f8f513f97aa4f1c78c097ca3451d2681406a03b"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"f0339c75063e4fe9e2095571c16ca3296afe620a","unresolved":false,"context_lines":[{"line_number":135,"context_line":"3. Allocate IP based on the compute host"},{"line_number":136,"context_line":"     (HostAware IPAM driver)"},{"line_number":137,"context_line":"     ::"},{"line_number":138,"context_line":"       class HostAwareDbPool"},{"line_number":139,"context_line":"           get_address_request_factory(self):"},{"line_number":140,"context_line":"           \"\"\"Return HostAwareAddressRequestFactory\"\"\""},{"line_number":141,"context_line":"           get_subnet_request_facotry(self):"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a122d0e_1fe019fa","line":138,"range":{"start_line":138,"start_character":7,"end_line":138,"end_character":28},"updated":"2016-05-02 07:26:28.000000000","message":"Method \u0027remove_subnet\u0027 has to be redefined here since it is part of the ipam interface","commit_id":"9f8f513f97aa4f1c78c097ca3451d2681406a03b"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"f0339c75063e4fe9e2095571c16ca3296afe620a","unresolved":false,"context_lines":[{"line_number":138,"context_line":"       class HostAwareDbPool"},{"line_number":139,"context_line":"           get_address_request_factory(self):"},{"line_number":140,"context_line":"           \"\"\"Return HostAwareAddressRequestFactory\"\"\""},{"line_number":141,"context_line":"           get_subnet_request_facotry(self):"},{"line_number":142,"context_line":"           \"\"\"Return HostAwareSubnetRequestFactory\"\"\""},{"line_number":143,"context_line":"           get_subnet(self, subnet_id):"},{"line_number":144,"context_line":"           \"\"\"Retrieve an IPAM subnet\"\"\""}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a122d0e_3f24f55e","line":141,"range":{"start_line":141,"start_character":30,"end_line":141,"end_character":37},"updated":"2016-05-02 07:26:28.000000000","message":"s/facotry/factory/","commit_id":"9f8f513f97aa4f1c78c097ca3451d2681406a03b"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"f0339c75063e4fe9e2095571c16ca3296afe620a","unresolved":false,"context_lines":[{"line_number":146,"context_line":"           \"\"\"Create an IPAM Subnet object\"\"\""},{"line_number":147,"context_line":"           update_subnet(self, subnet_request):"},{"line_number":148,"context_line":"           \"\"\"Update subnet info in the IPAM driver:\"\"\""},{"line_number":149,"context_line":"       class HostAwareDbSubnet"},{"line_number":150,"context_line":"           load(cls, neutron_subnet_id, ctx)"},{"line_number":151,"context_line":"           \"\"\"Load an IPAM subnet from the database given its neutron ID\"\"\""},{"line_number":152,"context_line":"           _verify_ip(self, session, ip_address):"}],"source_content_type":"text/x-rst","patch_set":5,"id":"1a122d0e_dfa341b0","line":149,"range":{"start_line":149,"start_character":7,"end_line":149,"end_character":30},"updated":"2016-05-02 07:26:28.000000000","message":"For this class we need next methods defined to comply with ipam interface:\n- allocate;\n- deallocate;\n- get_details;\n\nOther methods here (\u0027load\u0027, \u0027_verify_ip\u0027, \u0027_allocate_specific_ip\u0027, \u0027_try_generate_ip\u0027) are refered to implementation details and not required by ipam interface.\n\n[1] https://github.com/openstack/neutron/blob/master/neutron/ipam/driver.py","commit_id":"9f8f513f97aa4f1c78c097ca3451d2681406a03b"}]}
