)]}'
{"neutron/db/network_ip_availability_db.py":[{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"0859b847e6ac049842975f7ba5d788dc7423056b","unresolved":false,"context_lines":[{"line_number":181,"context_line":"    @classmethod"},{"line_number":182,"context_line":"    def get_subnetpool_availabilities(cls, context, filters\u003dNone):"},{"line_number":183,"context_line":"        \"\"\"Get availability stats on a per subnetpool basis.  \"\"\""},{"line_number":184,"context_line":"        query \u003d context.session.query(mod.SubnetPool)"},{"line_number":185,"context_line":"        result \u003d []"},{"line_number":186,"context_line":"        for sp in query:"},{"line_number":187,"context_line":"            all_cidrs \u003d netaddr.IPSet(p[\u0027cidr\u0027] for p in sp.prefixes)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1ac06dbe_6d528068","line":184,"range":{"start_line":184,"start_character":8,"end_line":184,"end_character":53},"updated":"2016-08-24 07:27:52.000000000","message":"If I use this api, I may want to know how many ipv4 addresses in all the subnetpools. I just check that the net-ip-availability-list has this filter. So I think for the subnetpool, the filter option might still be valid.\n\nMoreover, I may want to know how many addresses left in the address scope, because I want to create a network inside an address scope. So, I think it is also valid to add address scope as filter option.","commit_id":"9b2265371e06f490740c4c3cae61c8780a5c6827"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"799e32fd60409843bdb5222aa8a7dda45a8ccb71","unresolved":false,"context_lines":[{"line_number":181,"context_line":"    @classmethod"},{"line_number":182,"context_line":"    def get_subnetpool_availabilities(cls, context, filters\u003dNone):"},{"line_number":183,"context_line":"        \"\"\"Get availability stats on a per subnetpool basis.  \"\"\""},{"line_number":184,"context_line":"        query \u003d context.session.query(mod.SubnetPool)"},{"line_number":185,"context_line":"        result \u003d []"},{"line_number":186,"context_line":"        for sp in query:"},{"line_number":187,"context_line":"            all_cidrs \u003d netaddr.IPSet(p[\u0027cidr\u0027] for p in sp.prefixes)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1ac06dbe_ede11d9c","line":184,"range":{"start_line":184,"start_character":8,"end_line":184,"end_character":53},"in_reply_to":"1ac06dbe_6d528068","updated":"2016-08-24 20:26:18.000000000","message":"Good thoughts. I\u0027ll see what I can do. These should both be doable.","commit_id":"9b2265371e06f490740c4c3cae61c8780a5c6827"}]}
