)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"3ed746394052d040c90ceacfa77b187a2358242f","unresolved":false,"context_lines":[{"line_number":3,"context_line":"AuthorDate: 2013-12-15 20:46:09 -0800"},{"line_number":4,"context_line":"Commit:     Rajesh Mohan \u003crajesh_mohan3@dell.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2013-12-15 20:46:09 -0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implements: blueprint fwaas-service-insertion"},{"line_number":8,"context_line":"Implements: blueprint neutron-services-insertion-chaining-steering"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAATn%2F8%2Fis%3D","line":6,"updated":"2013-12-17 23:18:57.000000000","message":"per HACKING add a patch header message header here","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"a32cb03c89615a35764785d71c1374b887557806","unresolved":false,"context_lines":[{"line_number":3,"context_line":"AuthorDate: 2013-12-15 20:46:09 -0800"},{"line_number":4,"context_line":"Commit:     Rajesh Mohan \u003crajesh_mohan3@dell.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2013-12-15 20:46:09 -0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implements: blueprint fwaas-service-insertion"},{"line_number":8,"context_line":"Implements: blueprint neutron-services-insertion-chaining-steering"},{"line_number":9,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAAUX%2F%2B858%3D","line":6,"in_reply_to":"AAAATn%2F8%2Fis%3D","updated":"2014-02-18 01:59:43.000000000","message":"Done","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"3ed746394052d040c90ceacfa77b187a2358242f","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implements: blueprint fwaas-service-insertion"},{"line_number":8,"context_line":"Implements: blueprint neutron-services-insertion-chaining-steering"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"This implements Fwaas service insertion"},{"line_number":11,"context_line":"into neutron. The insertion information"},{"line_number":12,"context_line":"is saved in service-context."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAATn%2F8%2FiQ%3D","line":9,"updated":"2013-12-17 23:18:57.000000000","message":"per HACKING move this to the end of the commit message","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"a32cb03c89615a35764785d71c1374b887557806","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Implements: blueprint fwaas-service-insertion"},{"line_number":8,"context_line":"Implements: blueprint neutron-services-insertion-chaining-steering"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"This implements Fwaas service insertion"},{"line_number":11,"context_line":"into neutron. The insertion information"},{"line_number":12,"context_line":"is saved in service-context."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAAUX%2F%2B850%3D","line":9,"in_reply_to":"AAAATn%2F8%2FiQ%3D","updated":"2014-02-18 01:59:43.000000000","message":"Done","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"3ed746394052d040c90ceacfa77b187a2358242f","unresolved":false,"context_lines":[{"line_number":12,"context_line":"is saved in service-context."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"The service-context is expected to be"},{"line_number":15,"context_line":"used in other services such as Vpnaaas."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: Ic481d180a9877af529c13ff4ec54cd962b6f1518"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAATn%2F8%2FiI%3D","line":15,"updated":"2013-12-17 23:18:57.000000000","message":"VPNaaS","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"a32cb03c89615a35764785d71c1374b887557806","unresolved":false,"context_lines":[{"line_number":12,"context_line":"is saved in service-context."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"The service-context is expected to be"},{"line_number":15,"context_line":"used in other services such as Vpnaaas."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: Ic481d180a9877af529c13ff4ec54cd962b6f1518"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAAUX%2F%2B85w%3D","line":15,"in_reply_to":"AAAATn%2F8%2FiI%3D","updated":"2014-02-18 01:59:43.000000000","message":"Done","commit_id":"402af663c57426451b2b936d19351fd436798a91"}],"neutron/api/v2/attributes.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":440,"context_line":""},{"line_number":441,"context_line":"def _validate_service_context(data, key_specs\u003dNone):"},{"line_number":442,"context_line":"    # service_context must be None or dict"},{"line_number":443,"context_line":"    if not data:"},{"line_number":444,"context_line":"        return"},{"line_number":445,"context_line":"    if not isinstance(data, dict):"},{"line_number":446,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a dictionary\") % data"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2FobY%3D","line":443,"updated":"2014-03-02 10:39:24.000000000","message":"Are you checking data is None here? if so,\n\n  if data is None:\n      return","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"dc28695289fc2ed6afc4b92c33c3e9612efc729e","unresolved":false,"context_lines":[{"line_number":440,"context_line":""},{"line_number":441,"context_line":"def _validate_service_context(data, key_specs\u003dNone):"},{"line_number":442,"context_line":"    # service_context must be None or dict"},{"line_number":443,"context_line":"    if not data:"},{"line_number":444,"context_line":"        return"},{"line_number":445,"context_line":"    if not isinstance(data, dict):"},{"line_number":446,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a dictionary\") % data"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2Fa0%3D","line":443,"in_reply_to":"AAAAVX%2F%2FobY%3D","updated":"2014-03-02 21:48:54.000000000","message":"Done","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":460,"context_line":"                 \"Provided keys: %(provided_keys)s\") %"},{"line_number":461,"context_line":"               {\u0027allowed_keys\u0027: allowed_keys,"},{"line_number":462,"context_line":"                \u0027provided_keys\u0027: provided_keys})"},{"line_number":463,"context_line":"        return msg"},{"line_number":464,"context_line":""},{"line_number":465,"context_line":""},{"line_number":466,"context_line":"def convert_to_boolean(data):"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2FobI%3D","line":463,"updated":"2014-03-02 10:39:24.000000000","message":"The above logic checks only keys of data.\nDon\u0027t we need to check values of data?\nGuessing from the code, a value of dict should be a list.\nRight?","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"dc28695289fc2ed6afc4b92c33c3e9612efc729e","unresolved":false,"context_lines":[{"line_number":460,"context_line":"                 \"Provided keys: %(provided_keys)s\") %"},{"line_number":461,"context_line":"               {\u0027allowed_keys\u0027: allowed_keys,"},{"line_number":462,"context_line":"                \u0027provided_keys\u0027: provided_keys})"},{"line_number":463,"context_line":"        return msg"},{"line_number":464,"context_line":""},{"line_number":465,"context_line":""},{"line_number":466,"context_line":"def convert_to_boolean(data):"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2Fas%3D","line":463,"in_reply_to":"AAAAVX%2F%2FobI%3D","updated":"2014-03-02 21:48:54.000000000","message":"Done. Also added a negative test case for value that is not a list.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"f73e81d28a423066c924c024712b9875f4cfa3d0","unresolved":false,"context_lines":[{"line_number":453,"context_line":"            return msg"},{"line_number":454,"context_line":""},{"line_number":455,"context_line":"    # Do not perform any validation if allowed key list is empty"},{"line_number":456,"context_line":"    if not key_specs:"},{"line_number":457,"context_line":"        return"},{"line_number":458,"context_line":""},{"line_number":459,"context_line":"    allowed_keys \u003d set(key_specs)"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F3HU%3D","line":456,"updated":"2014-03-03 19:07:47.000000000","message":"We should return error here.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":453,"context_line":"            return msg"},{"line_number":454,"context_line":""},{"line_number":455,"context_line":"    # Do not perform any validation if allowed key list is empty"},{"line_number":456,"context_line":"    if not key_specs:"},{"line_number":457,"context_line":"        return"},{"line_number":458,"context_line":""},{"line_number":459,"context_line":"    allowed_keys \u003d set(key_specs)"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2IE%3D","line":456,"in_reply_to":"AAAAVn%2F%2F3HU%3D","updated":"2014-03-03 20:48:24.000000000","message":"I was not sure if there will be a plugin that may want to do it\u0027s own validation. \n\nAnyway, as per many requests, I will be defining key_specs within this function. I hope you are also ok with that.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"7e9e01076f2e2de8c755aa976562ea3e243726e2","unresolved":false,"context_lines":[{"line_number":443,"context_line":"    if data is None:"},{"line_number":444,"context_line":"        return"},{"line_number":445,"context_line":"    if not isinstance(data, dict):"},{"line_number":446,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a dictionary\") % data"},{"line_number":447,"context_line":"        LOG.debug(msg)"},{"line_number":448,"context_line":"        return msg"},{"line_number":449,"context_line":"    for k, v in data.iteritems():"}],"source_content_type":"text/x-python","patch_set":55,"id":"AAAAVn%2F%2FlsA%3D","line":446,"updated":"2014-03-05 07:20:25.000000000","message":"I think this message is not very clear. Something along the lines of:\n\n%s is not a valid service context, should be a dictionary","commit_id":"bdab16d6fdeb75b2b8fa11c2895404a6af77e029"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"7e9e01076f2e2de8c755aa976562ea3e243726e2","unresolved":false,"context_lines":[{"line_number":452,"context_line":"            LOG.debug(msg)"},{"line_number":453,"context_line":"            return msg"},{"line_number":454,"context_line":""},{"line_number":455,"context_line":"    allowed_keys \u003d set([\"routers\", \"networks\", \"ports\", \"subnets\"])"},{"line_number":456,"context_line":"    provided_keys \u003d set(data.keys())"},{"line_number":457,"context_line":""},{"line_number":458,"context_line":"    if not provided_keys.issubset(allowed_keys):"}],"source_content_type":"text/x-python","patch_set":55,"id":"AAAAVn%2F%2Flro%3D","line":455,"updated":"2014-03-05 07:20:25.000000000","message":"Probably better to define this list in the common constants module","commit_id":"bdab16d6fdeb75b2b8fa11c2895404a6af77e029"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"7e9e01076f2e2de8c755aa976562ea3e243726e2","unresolved":false,"context_lines":[{"line_number":460,"context_line":"                 \"Allowed keys: %(allowed_keys)s \""},{"line_number":461,"context_line":"                 \"Provided keys: %(provided_keys)s\") %"},{"line_number":462,"context_line":"               {\u0027allowed_keys\u0027: allowed_keys,"},{"line_number":463,"context_line":"                \u0027provided_keys\u0027: provided_keys})"},{"line_number":464,"context_line":"        return msg"},{"line_number":465,"context_line":""},{"line_number":466,"context_line":""}],"source_content_type":"text/x-python","patch_set":55,"id":"AAAAVn%2F%2FlrQ%3D","line":463,"updated":"2014-03-05 07:20:25.000000000","message":"Same comment as before, we probably want to say that this is not a valid service context","commit_id":"bdab16d6fdeb75b2b8fa11c2895404a6af77e029"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"3d1d56b25f5b4cc47c44a9cd6d589741f87df4da","unresolved":false,"context_lines":[{"line_number":469,"context_line":"        if not isinstance(v, list):"},{"line_number":470,"context_line":"            msg \u003d _(\"\u0027%s\u0027 is not a list\") % v"},{"line_number":471,"context_line":"            LOG.debug(msg)"},{"line_number":472,"context_line":"            return msg"},{"line_number":473,"context_line":""},{"line_number":474,"context_line":"    allowed_keys \u003d set(constants.SI_ALLOWED_RESOURCE_TYPES)"},{"line_number":475,"context_line":"    provided_keys \u003d set(data.keys())"}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAVn%2F%2FZ%2Fc%3D","line":472,"updated":"2014-03-06 10:37:46.000000000","message":"Is there any requirement for an element of each list? Should it be UUID?","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"5cd7c3523bd8e0346ee9a2a68ed7d554c4797cbd","unresolved":false,"context_lines":[{"line_number":469,"context_line":"        if not isinstance(v, list):"},{"line_number":470,"context_line":"            msg \u003d _(\"\u0027%s\u0027 is not a list\") % v"},{"line_number":471,"context_line":"            LOG.debug(msg)"},{"line_number":472,"context_line":"            return msg"},{"line_number":473,"context_line":""},{"line_number":474,"context_line":"    allowed_keys \u003d set(constants.SI_ALLOWED_RESOURCE_TYPES)"},{"line_number":475,"context_line":"    provided_keys \u003d set(data.keys())"}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAWH%2F9yos%3D","line":472,"in_reply_to":"AAAAVn%2F%2FZ%2Fc%3D","updated":"2014-04-02 08:02:21.000000000","message":"Done","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"3d1d56b25f5b4cc47c44a9cd6d589741f87df4da","unresolved":false,"context_lines":[{"line_number":476,"context_line":""},{"line_number":477,"context_line":"    if not provided_keys.issubset(allowed_keys):"},{"line_number":478,"context_line":"        msg \u003d (_(\"Not a valid Service context: \""},{"line_number":479,"context_line":"                 \"Allowed keys: %(allowed_keys)s \""},{"line_number":480,"context_line":"                 \"Provided keys: %(provided_keys)s\") %"},{"line_number":481,"context_line":"               {\u0027allowed_keys\u0027: allowed_keys,"},{"line_number":482,"context_line":"                \u0027provided_keys\u0027: provided_keys})"}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAVn%2F%2FZ%2F4%3D","line":479,"updated":"2014-03-06 10:37:46.000000000","message":"s/Allowed/Supported/ ?","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"5cd7c3523bd8e0346ee9a2a68ed7d554c4797cbd","unresolved":false,"context_lines":[{"line_number":476,"context_line":""},{"line_number":477,"context_line":"    if not provided_keys.issubset(allowed_keys):"},{"line_number":478,"context_line":"        msg \u003d (_(\"Not a valid Service context: \""},{"line_number":479,"context_line":"                 \"Allowed keys: %(allowed_keys)s \""},{"line_number":480,"context_line":"                 \"Provided keys: %(provided_keys)s\") %"},{"line_number":481,"context_line":"               {\u0027allowed_keys\u0027: allowed_keys,"},{"line_number":482,"context_line":"                \u0027provided_keys\u0027: provided_keys})"}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAWH%2F9yok%3D","line":479,"in_reply_to":"AAAAVn%2F%2FZ%2F4%3D","updated":"2014-04-02 08:02:21.000000000","message":"Done","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"}],"neutron/db/firewall/firewall_db.py":[{"author":{"_account_id":7576,"name":"Gary Duan","email":"garyduan@gmail.com","username":"garyduan"},"change_message_id":"e9218d0c312fbb4b08a30b326cddfd751d948396","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                                       backref\u003dorm.backref(\"firewall\","},{"line_number":80,"context_line":"                                                           lazy\u003d\u0027joined\u0027,"},{"line_number":81,"context_line":"                                                           uselist\u003dFalse,"},{"line_number":82,"context_line":"                                                           cascade\u003d\u0027delete\u0027))"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"class FirewallPolicy(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAUH%2F%2FQWw%3D","line":82,"updated":"2014-01-15 20:30:11.000000000","message":"Will we have source and destination context?","commit_id":"b13f6aaf7364b7763c4b379ba2fba1a249e4e873"},{"author":{"_account_id":7576,"name":"Gary Duan","email":"garyduan@gmail.com","username":"garyduan"},"change_message_id":"fe0985e75347b2e3fda2ec1dbcefc00930320120","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                                       backref\u003dorm.backref(\"firewall\","},{"line_number":80,"context_line":"                                                           lazy\u003d\u0027joined\u0027,"},{"line_number":81,"context_line":"                                                           uselist\u003dFalse,"},{"line_number":82,"context_line":"                                                           cascade\u003d\u0027delete\u0027))"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"class FirewallPolicy(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAUH%2F%2BOP0%3D","line":82,"in_reply_to":"AAAAUH%2F%2B%2BPE%3D","updated":"2014-01-28 22:54:01.000000000","message":"Even without chain, I think \u0027subnet\u0027 and \u0027port\u0027 do require source and destination context, is it right? What does a firewall on a port mean? (TAP?)","commit_id":"b13f6aaf7364b7763c4b379ba2fba1a249e4e873"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"18b7a2034fb81c1df6508f919d0053b60fbd4ae0","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                                       backref\u003dorm.backref(\"firewall\","},{"line_number":80,"context_line":"                                                           lazy\u003d\u0027joined\u0027,"},{"line_number":81,"context_line":"                                                           uselist\u003dFalse,"},{"line_number":82,"context_line":"                                                           cascade\u003d\u0027delete\u0027))"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"class FirewallPolicy(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAUX%2F%2B8ws%3D","line":82,"in_reply_to":"AAAAUH%2F%2BOP0%3D","updated":"2014-02-18 02:13:00.000000000","message":"As discussed during the weekly firewall sub-meeting, we will introduce the semantics for insertion points through firewall-zones. \n\nZones will be collection of insertion points and will be part of firewall rules.","commit_id":"b13f6aaf7364b7763c4b379ba2fba1a249e4e873"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"f8df452b969985269b13ccdee8b0ed52e1615e72","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                                       backref\u003dorm.backref(\"firewall\","},{"line_number":80,"context_line":"                                                           lazy\u003d\u0027joined\u0027,"},{"line_number":81,"context_line":"                                                           uselist\u003dFalse,"},{"line_number":82,"context_line":"                                                           cascade\u003d\u0027delete\u0027))"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"class FirewallPolicy(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAUH%2F%2B%2BPE%3D","line":82,"in_reply_to":"AAAAUH%2F%2FQWw%3D","updated":"2014-01-28 22:22:23.000000000","message":"I think we will have source and destination in the case of a chain, in which case it will become attribute of the chain resource.","commit_id":"b13f6aaf7364b7763c4b379ba2fba1a249e4e873"},{"author":{"_account_id":7591,"name":"Kanzhe Jiang","email":"kanzhe@gmail.com","username":"kanzhe"},"change_message_id":"1efdb2da28c1014352446ff5d5abfbb70ca8b9af","unresolved":false,"context_lines":[{"line_number":139,"context_line":"                                   (\u0027networks\u0027, \u0027network_id\u0027),"},{"line_number":140,"context_line":"                                   (\u0027subnets\u0027, \u0027subnet_id\u0027),"},{"line_number":141,"context_line":"                                   (\u0027ports\u0027, \u0027port_id\u0027)]:"},{"line_number":142,"context_line":"                db_entries \u003d svc_ctxt[c_name]"},{"line_number":143,"context_line":"                svc_ctxt_dict[c_name] \u003d []"},{"line_number":144,"context_line":"                for db_entry in db_entries:"},{"line_number":145,"context_line":"                    svc_ctxt_dict[c_name].append(db_entry.get(c_id))"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2Frw%3D","line":142,"updated":"2014-03-02 20:27:08.000000000","message":"db_entries \u003d svc_ctxt[c_name] or []\nThis is to avoid looping on NoneType object two lines down.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"cca933bf23cc620e6714b8a78dfbfbf1f0297c85","unresolved":false,"context_lines":[{"line_number":139,"context_line":"                                   (\u0027networks\u0027, \u0027network_id\u0027),"},{"line_number":140,"context_line":"                                   (\u0027subnets\u0027, \u0027subnet_id\u0027),"},{"line_number":141,"context_line":"                                   (\u0027ports\u0027, \u0027port_id\u0027)]:"},{"line_number":142,"context_line":"                db_entries \u003d svc_ctxt[c_name]"},{"line_number":143,"context_line":"                svc_ctxt_dict[c_name] \u003d []"},{"line_number":144,"context_line":"                for db_entry in db_entries:"},{"line_number":145,"context_line":"                    svc_ctxt_dict[c_name].append(db_entry.get(c_id))"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2FZw%3D","line":142,"in_reply_to":"AAAAVn%2F%2F%2Frw%3D","updated":"2014-03-02 22:21:19.000000000","message":"Done","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":6995,"name":"Sridar Kandaswamy","email":"skandasw@yahoo.com","username":"skandasw"},"change_message_id":"469e3681304da5523ece48f7b109af307834c0ab","unresolved":false,"context_lines":[{"line_number":264,"context_line":"        if not scontext:"},{"line_number":265,"context_line":"            return"},{"line_number":266,"context_line":"        if attributes.is_attr_set(fw_data.get(\u0027tenant_id\u0027)):"},{"line_number":267,"context_line":"            scontext[\u0027tenant_id\u0027] \u003d fw_data[\u0027tenant_id\u0027]"},{"line_number":268,"context_line":"        return self._process_service_context(context, scontext)"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"    def create_firewall(self, context, firewall):"}],"source_content_type":"text/x-python","patch_set":36,"id":"AAAAVn%2F%2F9N0%3D","line":267,"updated":"2014-03-03 08:02:24.000000000","message":"Perhaps i am missing some thing here - since service context is itself an attribute of the fw, is there a need for a tenant_id key - which anyways we are setting to the tenant_id of the fw.","commit_id":"1696072440477ba0ef020163e140d558b763a97b"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"109ad5d01bfff8caad2b824cffa4b91390caae46","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                                   (\u0027subnets\u0027, \u0027subnet_id\u0027),"},{"line_number":141,"context_line":"                                   (\u0027ports\u0027, \u0027port_id\u0027)]:"},{"line_number":142,"context_line":"                db_entries \u003d svc_ctxt[c_name] or []"},{"line_number":143,"context_line":"                svc_ctxt_dict[c_name] \u003d []"},{"line_number":144,"context_line":"                for db_entry in db_entries:"},{"line_number":145,"context_line":"                    svc_ctxt_dict[c_name].append(db_entry.get(c_id))"},{"line_number":146,"context_line":"            res[\u0027service_context\u0027] \u003d svc_ctxt_dict"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F3sM%3D","line":143,"updated":"2014-03-03 19:38:54.000000000","message":"nit:  consider not returning at all a context scope if it is not applied to any object","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                                   (\u0027subnets\u0027, \u0027subnet_id\u0027),"},{"line_number":141,"context_line":"                                   (\u0027ports\u0027, \u0027port_id\u0027)]:"},{"line_number":142,"context_line":"                db_entries \u003d svc_ctxt[c_name] or []"},{"line_number":143,"context_line":"                svc_ctxt_dict[c_name] \u003d []"},{"line_number":144,"context_line":"                for db_entry in db_entries:"},{"line_number":145,"context_line":"                    svc_ctxt_dict[c_name].append(db_entry.get(c_id))"},{"line_number":146,"context_line":"            res[\u0027service_context\u0027] \u003d svc_ctxt_dict"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2l0%3D","line":143,"in_reply_to":"AAAAVn%2F%2F3sM%3D","updated":"2014-03-03 20:48:24.000000000","message":"I will look at this. I believe I did this based on some comment.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"109ad5d01bfff8caad2b824cffa4b91390caae46","unresolved":false,"context_lines":[{"line_number":264,"context_line":"        if not scontext:"},{"line_number":265,"context_line":"            return"},{"line_number":266,"context_line":"        if attributes.is_attr_set(fw_data.get(\u0027tenant_id\u0027)):"},{"line_number":267,"context_line":"            scontext[\u0027tenant_id\u0027] \u003d fw_data[\u0027tenant_id\u0027]"},{"line_number":268,"context_line":"        return self._process_service_context(context, scontext)"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"    def create_firewall(self, context, firewall):"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F3q0%3D","line":267,"updated":"2014-03-03 19:38:54.000000000","message":"There are further validation questions.\n(adding the questions here at it can\u0027t be sorted through API level validation).\n\n1) How to deal with invalid IDs?\n2) What if context specification creates some sort of redundancy? For instance, what if a service context specifies both a router and a network attached to the same router?","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":264,"context_line":"        if not scontext:"},{"line_number":265,"context_line":"            return"},{"line_number":266,"context_line":"        if attributes.is_attr_set(fw_data.get(\u0027tenant_id\u0027)):"},{"line_number":267,"context_line":"            scontext[\u0027tenant_id\u0027] \u003d fw_data[\u0027tenant_id\u0027]"},{"line_number":268,"context_line":"        return self._process_service_context(context, scontext)"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"    def create_firewall(self, context, firewall):"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2ic%3D","line":267,"in_reply_to":"AAAAVn%2F%2F3q0%3D","updated":"2014-03-03 20:48:24.000000000","message":"1) How to deal with invalid IDs?\nSince we have foreign-key-constraint for all network resources, I thought there was no need to check for validity\n\n2) What if context specification creates some sort of redundancy? For instance, what if a service context specifies both a router and a network attached to the same router?\nReference implementation only uses routers. So, this code does not look for any errors w.r.t. to combination of insertion types. \n\nIf there is a plugin that supports more than one insertion-type (say ports and subnets), then it should have code that ensures that the combination makes sense. In future, the flavor (or the replacement for STF) will have this code.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"3d1d56b25f5b4cc47c44a9cd6d589741f87df4da","unresolved":false,"context_lines":[{"line_number":133,"context_line":"               \u0027status\u0027: fw[\u0027status\u0027],"},{"line_number":134,"context_line":"               \u0027firewall_policy_id\u0027: fw[\u0027firewall_policy_id\u0027]}"},{"line_number":135,"context_line":"        if fw.get(\u0027service_context_id\u0027):"},{"line_number":136,"context_line":"            svc_ctxt \u003d fw[\u0027service_context\u0027]"},{"line_number":137,"context_line":"            svc_ctxt_dict \u003d {}"},{"line_number":138,"context_line":"            for (c_name, c_id) in [(\u0027routers\u0027, \u0027router_id\u0027),"},{"line_number":139,"context_line":"                                   (\u0027networks\u0027, \u0027network_id\u0027),"}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAVn%2F%2FZwA%3D","line":136,"updated":"2014-03-06 10:37:46.000000000","message":"L.136-145 is common to all services. Can we define a method in the  service_context module.","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"5cd7c3523bd8e0346ee9a2a68ed7d554c4797cbd","unresolved":false,"context_lines":[{"line_number":133,"context_line":"               \u0027status\u0027: fw[\u0027status\u0027],"},{"line_number":134,"context_line":"               \u0027firewall_policy_id\u0027: fw[\u0027firewall_policy_id\u0027]}"},{"line_number":135,"context_line":"        if fw.get(\u0027service_context_id\u0027):"},{"line_number":136,"context_line":"            svc_ctxt \u003d fw[\u0027service_context\u0027]"},{"line_number":137,"context_line":"            svc_ctxt_dict \u003d {}"},{"line_number":138,"context_line":"            for (c_name, c_id) in [(\u0027routers\u0027, \u0027router_id\u0027),"},{"line_number":139,"context_line":"                                   (\u0027networks\u0027, \u0027network_id\u0027),"}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAWH%2F9yYA%3D","line":136,"in_reply_to":"AAAAVn%2F%2FZwA%3D","updated":"2014-04-02 08:02:21.000000000","message":"Will do this later (after patch 62).","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"3d1d56b25f5b4cc47c44a9cd6d589741f87df4da","unresolved":false,"context_lines":[{"line_number":138,"context_line":"            for (c_name, c_id) in [(\u0027routers\u0027, \u0027router_id\u0027),"},{"line_number":139,"context_line":"                                   (\u0027networks\u0027, \u0027network_id\u0027),"},{"line_number":140,"context_line":"                                   (\u0027subnets\u0027, \u0027subnet_id\u0027),"},{"line_number":141,"context_line":"                                   (\u0027ports\u0027, \u0027port_id\u0027)]:"},{"line_number":142,"context_line":"                db_entries \u003d svc_ctxt[c_name] or []"},{"line_number":143,"context_line":"                svc_ctxt_dict[c_name] \u003d []"},{"line_number":144,"context_line":"                for db_entry in db_entries:"}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAVn%2F%2FZxE%3D","line":141,"updated":"2014-03-06 10:37:46.000000000","message":"Can\u0027t we refer to constants.SI_ALLOWED_RESOURCE_TYPES?\nWe can write this:\n\n  for ctxt_type in constants.SI_ALLOWED_RESOURCE_TYPES\u0027\n    db_entries \u003d svc_ctxt[ctxt_type] or []\n    svc_ctxt_dict[ctxt_type] \u003d []\n    for db_entry in db_entries:\n      c_id \u003d \u0027%s_id\u0027 % ctxt_type[:-1]\n      svc_ctxt_dict[c_name].append(db_entry.get(c_id))\n\nI think it is better to refer to the constant to keep the cosnsitency of supported service modes.","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"5cd7c3523bd8e0346ee9a2a68ed7d554c4797cbd","unresolved":false,"context_lines":[{"line_number":138,"context_line":"            for (c_name, c_id) in [(\u0027routers\u0027, \u0027router_id\u0027),"},{"line_number":139,"context_line":"                                   (\u0027networks\u0027, \u0027network_id\u0027),"},{"line_number":140,"context_line":"                                   (\u0027subnets\u0027, \u0027subnet_id\u0027),"},{"line_number":141,"context_line":"                                   (\u0027ports\u0027, \u0027port_id\u0027)]:"},{"line_number":142,"context_line":"                db_entries \u003d svc_ctxt[c_name] or []"},{"line_number":143,"context_line":"                svc_ctxt_dict[c_name] \u003d []"},{"line_number":144,"context_line":"                for db_entry in db_entries:"}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAWH%2F9yYI%3D","line":141,"in_reply_to":"AAAAVn%2F%2FZxE%3D","updated":"2014-04-02 08:02:21.000000000","message":"Done","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"3d1d56b25f5b4cc47c44a9cd6d589741f87df4da","unresolved":false,"context_lines":[{"line_number":265,"context_line":"            return"},{"line_number":266,"context_line":"        if attributes.is_attr_set(fw_data.get(\u0027tenant_id\u0027)):"},{"line_number":267,"context_line":"            scontext[\u0027tenant_id\u0027] \u003d fw_data[\u0027tenant_id\u0027]"},{"line_number":268,"context_line":"        return self._process_service_context(context, scontext)"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"    def create_firewall(self, context, firewall):"},{"line_number":271,"context_line":"        LOG.debug(_(\"create_firewall() called\"))"}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAVn%2F%2FZog%3D","line":268,"updated":"2014-03-06 10:37:46.000000000","message":"how about the following? the logic can be shared across services.\n\n(service_context.py)\n\n  def _process_service_context(self, context, service_data):\n     if not attributes.is_attr_set(service_data.get(\u0027service_context\u0027):\n         return\n     scontext \u003d service_data[\u0027service_context\u0027]\n     if not scontext:\n         return\n     if attributes.is_attr_set(service_data.get(\u0027tenant_id\u0027)):\n         scontext[\u0027tenant_id\u0027] \u003d service_data[\u0027tenant_id\u0027]\n     [original _process_service_context logic]\n\n(firewall_db)\n\n  fw_data \u003d firewall[\u0027firewall\u0027]\n  self._process_service_context(context, fw_data)","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"5cd7c3523bd8e0346ee9a2a68ed7d554c4797cbd","unresolved":false,"context_lines":[{"line_number":265,"context_line":"            return"},{"line_number":266,"context_line":"        if attributes.is_attr_set(fw_data.get(\u0027tenant_id\u0027)):"},{"line_number":267,"context_line":"            scontext[\u0027tenant_id\u0027] \u003d fw_data[\u0027tenant_id\u0027]"},{"line_number":268,"context_line":"        return self._process_service_context(context, scontext)"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"    def create_firewall(self, context, firewall):"},{"line_number":271,"context_line":"        LOG.debug(_(\"create_firewall() called\"))"}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAWH%2F9yVc%3D","line":268,"in_reply_to":"AAAAVn%2F%2FZog%3D","updated":"2014-04-02 08:02:21.000000000","message":"Done","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"}],"neutron/db/migration/alembic_migrations/versions/5608d8f235ea_service_insertion_in_fwaas.py":[{"author":{"_account_id":7576,"name":"Gary Duan","email":"garyduan@gmail.com","username":"garyduan"},"change_message_id":"9137463cbd6074a2cbb0762a991663c47b435575","unresolved":false,"context_lines":[{"line_number":108,"context_line":"                                            [\u0027service_context.id\u0027],"},{"line_number":109,"context_line":"                                            ondelete\u003d\u0027CASCADE\u0027),"},{"line_number":110,"context_line":"                    sa.PrimaryKeyConstraint(\u0027id\u0027),"},{"line_number":111,"context_line":"                    mysql_engine\u003d\u0027InnoDB\u0027)"},{"line_number":112,"context_line":"    op.add_column(\u0027firewalls\u0027,"},{"line_number":113,"context_line":"                  sa.Column(\u0027service_context_id\u0027, sa.String(length\u003d36),"},{"line_number":114,"context_line":"                            nullable\u003dTrue))"}],"source_content_type":"text/x-python","patch_set":21,"id":"AAAAUX%2F%2BsE8%3D","line":111,"updated":"2014-02-19 19:34:19.000000000","message":"I suggest we merge network/port/subnet/router_context table into one, and add context_type column. There will be no ForeignKeyConstraint for the context_object (network/port...) column. Similar to routedserviceinsertion_db.","commit_id":"625bdd6ad6cd300a8f434d3fdbb7b537501f99bf"},{"author":{"_account_id":7576,"name":"Gary Duan","email":"garyduan@gmail.com","username":"garyduan"},"change_message_id":"5d580b134eed34362310e5b621c158d1948a4e7e","unresolved":false,"context_lines":[{"line_number":108,"context_line":"                                            [\u0027service_context.id\u0027],"},{"line_number":109,"context_line":"                                            ondelete\u003d\u0027CASCADE\u0027),"},{"line_number":110,"context_line":"                    sa.PrimaryKeyConstraint(\u0027id\u0027),"},{"line_number":111,"context_line":"                    mysql_engine\u003d\u0027InnoDB\u0027)"},{"line_number":112,"context_line":"    op.add_column(\u0027firewalls\u0027,"},{"line_number":113,"context_line":"                  sa.Column(\u0027service_context_id\u0027, sa.String(length\u003d36),"},{"line_number":114,"context_line":"                            nullable\u003dTrue))"}],"source_content_type":"text/x-python","patch_set":21,"id":"AAAAUX%2F%2Bo9Y%3D","line":111,"in_reply_to":"AAAAUX%2F%2BrXs%3D","updated":"2014-02-20 02:52:16.000000000","message":"Thanks for the explanation.","commit_id":"625bdd6ad6cd300a8f434d3fdbb7b537501f99bf"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"62cf93f6cea419dae5e51f07bcdf0452c9588869","unresolved":false,"context_lines":[{"line_number":108,"context_line":"                                            [\u0027service_context.id\u0027],"},{"line_number":109,"context_line":"                                            ondelete\u003d\u0027CASCADE\u0027),"},{"line_number":110,"context_line":"                    sa.PrimaryKeyConstraint(\u0027id\u0027),"},{"line_number":111,"context_line":"                    mysql_engine\u003d\u0027InnoDB\u0027)"},{"line_number":112,"context_line":"    op.add_column(\u0027firewalls\u0027,"},{"line_number":113,"context_line":"                  sa.Column(\u0027service_context_id\u0027, sa.String(length\u003d36),"},{"line_number":114,"context_line":"                            nullable\u003dTrue))"}],"source_content_type":"text/x-python","patch_set":21,"id":"AAAAUX%2F%2BrXs%3D","line":111,"in_reply_to":"AAAAUX%2F%2BsE8%3D","updated":"2014-02-19 20:48:32.000000000","message":"I would like ForeignKeyConstraint on objects where service is inserted. That\u0027s why I have them as separate tables. Otherwise, it will be too complex to keep track of what is valid. Say, a firewall is installed on a router and router is deleted, we may not report a error without this constraint in place.","commit_id":"625bdd6ad6cd300a8f434d3fdbb7b537501f99bf"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"360cc066ac9286e22811fa89103460940d53243f","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\"\"\"service insertion in FWaaS"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Revision ID: 5608d8f235ea"},{"line_number":19,"context_line":"Revises: 1b2580001654"},{"line_number":20,"context_line":"Create Date: 2014-01-08 17:51:22.961220"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"\"\"\""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2FpTs%3D","line":19,"updated":"2014-03-02 03:18:12.000000000","message":"this has changed","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"cca933bf23cc620e6714b8a78dfbfbf1f0297c85","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\"\"\"service insertion in FWaaS"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Revision ID: 5608d8f235ea"},{"line_number":19,"context_line":"Revises: 1b2580001654"},{"line_number":20,"context_line":"Create Date: 2014-01-08 17:51:22.961220"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"\"\"\""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2FU0%3D","line":19,"in_reply_to":"AAAAVX%2F%2FpTs%3D","updated":"2014-03-02 22:21:19.000000000","message":"Yes - this keeps changing. Updated it and will keep checking.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"360cc066ac9286e22811fa89103460940d53243f","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"# revision identifiers, used by Alembic."},{"line_number":25,"context_line":"revision \u003d \u00275608d8f235ea\u0027"},{"line_number":26,"context_line":"down_revision \u003d \u00271b2580001654\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"# Change to [\u0027*\u0027] if this migration applies to all plugins"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2FpTo%3D","line":26,"updated":"2014-03-02 03:18:12.000000000","message":"ditto","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"cca933bf23cc620e6714b8a78dfbfbf1f0297c85","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"# revision identifiers, used by Alembic."},{"line_number":25,"context_line":"revision \u003d \u00275608d8f235ea\u0027"},{"line_number":26,"context_line":"down_revision \u003d \u00271b2580001654\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"# Change to [\u0027*\u0027] if this migration applies to all plugins"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2FUw%3D","line":26,"in_reply_to":"AAAAVX%2F%2FpTo%3D","updated":"2014-03-02 22:21:19.000000000","message":"Done","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"109ad5d01bfff8caad2b824cffa4b91390caae46","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\"\"\"service insertion in FWaaS"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Revision ID: 5608d8f235ea"},{"line_number":19,"context_line":"Revises: 2eeaf963a447"},{"line_number":20,"context_line":"Create Date: 2014-01-08 17:51:22.961220"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"\"\"\""}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F3yo%3D","line":19,"updated":"2014-03-03 19:38:54.000000000","message":"I think another migration went in... sorry about that","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":16,"context_line":"\"\"\"service insertion in FWaaS"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Revision ID: 5608d8f235ea"},{"line_number":19,"context_line":"Revises: 2eeaf963a447"},{"line_number":20,"context_line":"Create Date: 2014-01-08 17:51:22.961220"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"\"\"\""}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2iI%3D","line":19,"in_reply_to":"AAAAVn%2F%2F3yo%3D","updated":"2014-03-03 20:48:24.000000000","message":"Most of the patches have just revision id catchup changes. I will take care of this in my next patch.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"109ad5d01bfff8caad2b824cffa4b91390caae46","unresolved":false,"context_lines":[{"line_number":28,"context_line":"# Change to [\u0027*\u0027] if this migration applies to all plugins"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"migration_for_plugins \u003d ["},{"line_number":31,"context_line":"    \u0027neutron.plugins.ml2.plugin.Ml2Plugin\u0027"},{"line_number":32,"context_line":"]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"from alembic import op"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F3xk%3D","line":31,"updated":"2014-03-03 19:38:54.000000000","message":"I think this migration should target the firewall service plugin. I think it is ok to deploy ML2 without firewall; in that case the migration should not be executed.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":28,"context_line":"# Change to [\u0027*\u0027] if this migration applies to all plugins"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"migration_for_plugins \u003d ["},{"line_number":31,"context_line":"    \u0027neutron.plugins.ml2.plugin.Ml2Plugin\u0027"},{"line_number":32,"context_line":"]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"from alembic import op"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2fw%3D","line":31,"in_reply_to":"AAAAVn%2F%2F3xk%3D","updated":"2014-03-03 20:48:24.000000000","message":"ok.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"109ad5d01bfff8caad2b824cffa4b91390caae46","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    if not migration.should_run(active_plugins, migration_for_plugins):"},{"line_number":42,"context_line":"        return"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    ### commands auto generated by Alembic - please adjust! ###"},{"line_number":45,"context_line":"    op.create_table(\u0027service_context\u0027,"},{"line_number":46,"context_line":"                    sa.Column(\u0027tenant_id\u0027, sa.String(length\u003d255),"},{"line_number":47,"context_line":"                              nullable\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F3vw%3D","line":44,"updated":"2014-03-03 19:38:54.000000000","message":"you\u0027ve adjusted... therefore you can remove the above comment!","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    if not migration.should_run(active_plugins, migration_for_plugins):"},{"line_number":42,"context_line":"        return"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    ### commands auto generated by Alembic - please adjust! ###"},{"line_number":45,"context_line":"    op.create_table(\u0027service_context\u0027,"},{"line_number":46,"context_line":"                    sa.Column(\u0027tenant_id\u0027, sa.String(length\u003d255),"},{"line_number":47,"context_line":"                              nullable\u003dTrue),"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2fM%3D","line":44,"in_reply_to":"AAAAVn%2F%2F3vw%3D","updated":"2014-03-03 20:48:24.000000000","message":"Done","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"109ad5d01bfff8caad2b824cffa4b91390caae46","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                    mysql_engine\u003d\u0027InnoDB\u0027)"},{"line_number":51,"context_line":"    op.create_table(\u0027si_network_contexts\u0027,"},{"line_number":52,"context_line":"                    sa.Column(\u0027tenant_id\u0027, sa.String(length\u003d255),"},{"line_number":53,"context_line":"                              nullable\u003dTrue),"},{"line_number":54,"context_line":"                    sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":55,"context_line":"                    sa.Column(\u0027service_context_id\u0027, sa.String(length\u003d36),"},{"line_number":56,"context_line":"                              nullable\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F3vU%3D","line":53,"updated":"2014-03-03 19:38:54.000000000","message":"I think tenant_id attributes on si_xxx_context tables are redundant.\n\nWhy has that been specified?","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                    mysql_engine\u003d\u0027InnoDB\u0027)"},{"line_number":51,"context_line":"    op.create_table(\u0027si_network_contexts\u0027,"},{"line_number":52,"context_line":"                    sa.Column(\u0027tenant_id\u0027, sa.String(length\u003d255),"},{"line_number":53,"context_line":"                              nullable\u003dTrue),"},{"line_number":54,"context_line":"                    sa.Column(\u0027id\u0027, sa.String(length\u003d36), nullable\u003dFalse),"},{"line_number":55,"context_line":"                    sa.Column(\u0027service_context_id\u0027, sa.String(length\u003d36),"},{"line_number":56,"context_line":"                              nullable\u003dFalse),"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2S4%3D","line":53,"in_reply_to":"AAAAVn%2F%2F3vU%3D","updated":"2014-03-03 20:48:24.000000000","message":"done","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"109ad5d01bfff8caad2b824cffa4b91390caae46","unresolved":false,"context_lines":[{"line_number":118,"context_line":"    if not migration.should_run(active_plugins, migration_for_plugins):"},{"line_number":119,"context_line":"        return"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"    ### commands auto generated by Alembic - please adjust! ###"},{"line_number":122,"context_line":"    op.drop_column(\u0027firewalls\u0027, \u0027service_context_id\u0027)"},{"line_number":123,"context_line":"    op.drop_table(\u0027si_router_contexts\u0027)"},{"line_number":124,"context_line":"    op.drop_table(\u0027si_subnet_contexts\u0027)"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F3vI%3D","line":121,"updated":"2014-03-03 19:38:54.000000000","message":"remove comment above, please!","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":118,"context_line":"    if not migration.should_run(active_plugins, migration_for_plugins):"},{"line_number":119,"context_line":"        return"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"    ### commands auto generated by Alembic - please adjust! ###"},{"line_number":122,"context_line":"    op.drop_column(\u0027firewalls\u0027, \u0027service_context_id\u0027)"},{"line_number":123,"context_line":"    op.drop_table(\u0027si_router_contexts\u0027)"},{"line_number":124,"context_line":"    op.drop_table(\u0027si_subnet_contexts\u0027)"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2J0%3D","line":121,"in_reply_to":"AAAAVn%2F%2F3vI%3D","updated":"2014-03-03 20:48:24.000000000","message":"Done","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"}],"neutron/db/service_context.py":[{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"1facdf12aeb5f4b8cf13e349d10d8e6ccf4f9263","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    __tablename__ \u003d \u0027service_context\u0027"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class NetworkContext(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):"},{"line_number":42,"context_line":"    \"\"\"Represents a Network Context for service insertion.\"\"\""},{"line_number":43,"context_line":"    __tablename__ \u003d \u0027network_context\u0027"},{"line_number":44,"context_line":"    service_context_id \u003d sa.Column(sa.String(36),"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8%2BwI%3D","line":41,"updated":"2013-12-18 06:09:14.000000000","message":"NetworkContext, SubnetContext, etc are a lot of code duplication.\nCan they be combined into one just like ServiceRouterBinding?","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"a32cb03c89615a35764785d71c1374b887557806","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    __tablename__ \u003d \u0027service_context\u0027"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class NetworkContext(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):"},{"line_number":42,"context_line":"    \"\"\"Represents a Network Context for service insertion.\"\"\""},{"line_number":43,"context_line":"    __tablename__ \u003d \u0027network_context\u0027"},{"line_number":44,"context_line":"    service_context_id \u003d sa.Column(sa.String(36),"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2B80Y%3D","line":41,"in_reply_to":"AAAATn%2F8%2BwI%3D","updated":"2014-02-18 01:59:43.000000000","message":"I am sorry. I am not sure what to change here. I looked at ServiceRouterBinding but I do not see how creation of multiple tables be compressed. Please suggest with some code. Thanks.","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"06a5135ff34b1c3fdcc8441693cb1e3e5faea711","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    network \u003d orm.relationship(models_v2.Network,"},{"line_number":54,"context_line":"                               backref\u003dorm.backref(\"NetworkContext\","},{"line_number":55,"context_line":"                                                   lazy\u003d\u0027joined\u0027,"},{"line_number":56,"context_line":"                                                   uselist\u003dFalse,"},{"line_number":57,"context_line":"                                                   cascade\u003d\u0027delete\u0027))"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8nrI%3D","line":56,"updated":"2013-12-24 08:30:17.000000000","message":"Only single network is allowed for single context?\nIt would be okay for FWaaS, but other service may require multiple resources.","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"a32cb03c89615a35764785d71c1374b887557806","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    network \u003d orm.relationship(models_v2.Network,"},{"line_number":54,"context_line":"                               backref\u003dorm.backref(\"NetworkContext\","},{"line_number":55,"context_line":"                                                   lazy\u003d\u0027joined\u0027,"},{"line_number":56,"context_line":"                                                   uselist\u003dFalse,"},{"line_number":57,"context_line":"                                                   cascade\u003d\u0027delete\u0027))"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2B82I%3D","line":56,"in_reply_to":"AAAATn%2F8nrI%3D","updated":"2014-02-18 01:59:43.000000000","message":"No. Service context can take list of network IDs.","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"06a5135ff34b1c3fdcc8441693cb1e3e5faea711","unresolved":false,"context_lines":[{"line_number":171,"context_line":"                                                tenant_id\u003dtenant_id)"},{"line_number":172,"context_line":"            context.session.add(service_context_db)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        if attributes.is_attr_set(sctxt.get(svc_ctxt.SI_CONTEXT_NETWORKS)):"},{"line_number":175,"context_line":"            self._process_network_context(context, service_context_db,"},{"line_number":176,"context_line":"                                          sctxt[svc_ctxt.SI_CONTEXT_NETWORKS])"},{"line_number":177,"context_line":"        elif attributes.is_attr_set(sctxt.get(svc_ctxt.SI_CONTEXT_SUBNETS)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8nqw%3D","line":174,"updated":"2013-12-24 08:30:17.000000000","message":"There is no reason to split db operation into multiple transaction here.","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"a32cb03c89615a35764785d71c1374b887557806","unresolved":false,"context_lines":[{"line_number":171,"context_line":"                                                tenant_id\u003dtenant_id)"},{"line_number":172,"context_line":"            context.session.add(service_context_db)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        if attributes.is_attr_set(sctxt.get(svc_ctxt.SI_CONTEXT_NETWORKS)):"},{"line_number":175,"context_line":"            self._process_network_context(context, service_context_db,"},{"line_number":176,"context_line":"                                          sctxt[svc_ctxt.SI_CONTEXT_NETWORKS])"},{"line_number":177,"context_line":"        elif attributes.is_attr_set(sctxt.get(svc_ctxt.SI_CONTEXT_SUBNETS)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2B80c%3D","line":174,"in_reply_to":"AAAATn%2F8nqw%3D","updated":"2014-02-18 01:59:43.000000000","message":"Can you please give more information with code pointer?","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"06a5135ff34b1c3fdcc8441693cb1e3e5faea711","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        if attributes.is_attr_set(sctxt.get(svc_ctxt.SI_CONTEXT_NETWORKS)):"},{"line_number":175,"context_line":"            self._process_network_context(context, service_context_db,"},{"line_number":176,"context_line":"                                          sctxt[svc_ctxt.SI_CONTEXT_NETWORKS])"},{"line_number":177,"context_line":"        elif attributes.is_attr_set(sctxt.get(svc_ctxt.SI_CONTEXT_SUBNETS)):"},{"line_number":178,"context_line":"            self._process_subnet_context(context, service_context_db,"},{"line_number":179,"context_line":"                                         sctxt[svc_ctxt.SI_CONTEXT_SUBNETS])"},{"line_number":180,"context_line":"        elif attributes.is_attr_set(sctxt.get(svc_ctxt.SI_CONTEXT_PORTS)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8nqo%3D","line":177,"updated":"2013-12-24 08:30:17.000000000","message":"\u0027elif\u0027? not \u0027if\u0027?\nWhat\u0027s the assumption to allow only single resource?","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"a32cb03c89615a35764785d71c1374b887557806","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        if attributes.is_attr_set(sctxt.get(svc_ctxt.SI_CONTEXT_NETWORKS)):"},{"line_number":175,"context_line":"            self._process_network_context(context, service_context_db,"},{"line_number":176,"context_line":"                                          sctxt[svc_ctxt.SI_CONTEXT_NETWORKS])"},{"line_number":177,"context_line":"        elif attributes.is_attr_set(sctxt.get(svc_ctxt.SI_CONTEXT_SUBNETS)):"},{"line_number":178,"context_line":"            self._process_subnet_context(context, service_context_db,"},{"line_number":179,"context_line":"                                         sctxt[svc_ctxt.SI_CONTEXT_SUBNETS])"},{"line_number":180,"context_line":"        elif attributes.is_attr_set(sctxt.get(svc_ctxt.SI_CONTEXT_PORTS)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2B81U%3D","line":177,"in_reply_to":"AAAATn%2F8nqo%3D","updated":"2014-02-18 01:59:43.000000000","message":"Done","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"6ab0a7942ae23eae8dd01397fa376430bad404de","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Copyright 2014"},{"line_number":4,"context_line":"# All Rights Reserved."},{"line_number":5,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":24,"id":"AAAAU3%2F%2FzCM%3D","line":2,"updated":"2014-02-24 18:33:20.000000000","message":"nit: it seems like we are actively enforcing not adding vim modelines for new modules","commit_id":"7b28525c23adaf4c09cad4ff1d0bdfd27d2e65df"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"ab0dc2061b4059c28acb4c9e84d5bf1f8affd823","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Copyright 2014"},{"line_number":4,"context_line":"# All Rights Reserved."},{"line_number":5,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":24,"id":"AAAAU3%2F%2Fis8%3D","line":2,"in_reply_to":"AAAAU3%2F%2FzCM%3D","updated":"2014-02-26 01:48:20.000000000","message":"Done","commit_id":"7b28525c23adaf4c09cad4ff1d0bdfd27d2e65df"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"# Service Context Exceptions"},{"line_number":35,"context_line":"class ServiceContextNotSupported(qexception.NotFound):"},{"line_number":36,"context_line":"    message \u003d _(\"Service Context %(id) not supported.\")"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2Fom0%3D","line":35,"updated":"2014-03-02 10:39:24.000000000","message":"NotFound seems not to be correct. Invalid or similar one?","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"31ab2d49dd725b368b30ff655be3faf3db7de81c","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"# Service Context Exceptions"},{"line_number":35,"context_line":"class ServiceContextNotSupported(qexception.NotFound):"},{"line_number":36,"context_line":"    message \u003d _(\"Service Context %(id) not supported.\")"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2BMw%3D","line":35,"in_reply_to":"AAAAVX%2F%2Fom0%3D","updated":"2014-03-03 03:38:06.000000000","message":"Done","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"class NetworkContext(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):"},{"line_number":60,"context_line":"    \"\"\"Represents a Network Context for service insertion.\"\"\""},{"line_number":61,"context_line":"    __tablename__ \u003d \u0027network_context\u0027"},{"line_number":62,"context_line":"    service_context_id \u003d sa.Column(sa.String(36),"},{"line_number":63,"context_line":"                                   sa.ForeignKey(\u0027service_context.id\u0027,"},{"line_number":64,"context_line":"                                                 ondelete\u003d\u0027CASCADE\u0027),"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2FomI%3D","line":61,"updated":"2014-03-02 10:39:24.000000000","message":"Why is the table name a singular form? network_contexts looks better to me.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"e758ef792f1c625752b9155ae4e9c5b86b2c1e0e","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"class NetworkContext(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):"},{"line_number":60,"context_line":"    \"\"\"Represents a Network Context for service insertion.\"\"\""},{"line_number":61,"context_line":"    __tablename__ \u003d \u0027network_context\u0027"},{"line_number":62,"context_line":"    service_context_id \u003d sa.Column(sa.String(36),"},{"line_number":63,"context_line":"                                   sa.ForeignKey(\u0027service_context.id\u0027,"},{"line_number":64,"context_line":"                                                 ondelete\u003d\u0027CASCADE\u0027),"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2Fj8%3D","line":61,"in_reply_to":"AAAAVX%2F%2FomI%3D","updated":"2014-03-02 20:52:32.000000000","message":"Also, isn\u0027t this name a little to generic for its purpose? How about serviceinsertion_network_contexts or si_network_contexts? Same for all the tables added here.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"31ab2d49dd725b368b30ff655be3faf3db7de81c","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"class NetworkContext(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):"},{"line_number":60,"context_line":"    \"\"\"Represents a Network Context for service insertion.\"\"\""},{"line_number":61,"context_line":"    __tablename__ \u003d \u0027network_context\u0027"},{"line_number":62,"context_line":"    service_context_id \u003d sa.Column(sa.String(36),"},{"line_number":63,"context_line":"                                   sa.ForeignKey(\u0027service_context.id\u0027,"},{"line_number":64,"context_line":"                                                 ondelete\u003d\u0027CASCADE\u0027),"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2BMM%3D","line":61,"in_reply_to":"AAAAVX%2F%2FomI%3D","updated":"2014-03-03 03:38:06.000000000","message":"I agree that it needs to be plural. As suggested by Henry, I prepended with \"si_\"","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"31ab2d49dd725b368b30ff655be3faf3db7de81c","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"class NetworkContext(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):"},{"line_number":60,"context_line":"    \"\"\"Represents a Network Context for service insertion.\"\"\""},{"line_number":61,"context_line":"    __tablename__ \u003d \u0027network_context\u0027"},{"line_number":62,"context_line":"    service_context_id \u003d sa.Column(sa.String(36),"},{"line_number":63,"context_line":"                                   sa.ForeignKey(\u0027service_context.id\u0027,"},{"line_number":64,"context_line":"                                                 ondelete\u003d\u0027CASCADE\u0027),"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2BMA%3D","line":61,"in_reply_to":"AAAAVn%2F%2F%2Fj8%3D","updated":"2014-03-03 03:38:06.000000000","message":"Done","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":150,"context_line":""},{"line_number":151,"context_line":"class ServiceContextMixin(object):"},{"line_number":152,"context_line":"    \"\"\"Mixin class for Service Context DB implementation.\"\"\""},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def _get_service_context(self, context, id):"},{"line_number":155,"context_line":"        try:"},{"line_number":156,"context_line":"            return self._get_by_id(context, ServiceContext, id)"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2Fokg%3D","line":153,"updated":"2014-03-02 10:39:24.000000000","message":"All _get_*_context have very similar pattern. We don\u0027t need to define individual methods. Consider:\n\n  ctxt_class_map \u003d {\n      \u0027service\u0027: ServiceContext,\n      \u0027network\u0027: NetworkContext,\n      \u0027subnet\u0027: SubnetContext,\n      ....\n  }\n  ctxt_exc_noutfound_map \u003d {\n      \u0027service\u0027: ServiceContextNotFound,\n      \u0027network\u0027: NetworkContextNotFound,\n      \u0027subnet\u0027: SubnetContextNotFound,\n      ....\n  }\n\n  def _get_resource_context(self, context, id, resource_name, exc_notfound):\n    try:\n      return self._get_by_id(context, ctxt_class_map[resource_name], id)\n    except exc.NoResultFound:\n      raise ctxt_exc_notfound_map[resource_name](id\u003did)","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"30485010b49dd6f2f5c56df7b5c80fd90e7dc6a6","unresolved":false,"context_lines":[{"line_number":150,"context_line":""},{"line_number":151,"context_line":"class ServiceContextMixin(object):"},{"line_number":152,"context_line":"    \"\"\"Mixin class for Service Context DB implementation.\"\"\""},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def _get_service_context(self, context, id):"},{"line_number":155,"context_line":"        try:"},{"line_number":156,"context_line":"            return self._get_by_id(context, ServiceContext, id)"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F8tY%3D","line":153,"in_reply_to":"AAAAVX%2F%2Fokg%3D","updated":"2014-03-03 08:41:28.000000000","message":"Done","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":185,"context_line":"        res \u003d {\u0027service_context_id\u0027: svc_ctxt[\u0027id\u0027],"},{"line_number":186,"context_line":"               \u0027tenant_id\u0027: svc_ctxt[\u0027tenant_id\u0027]}"},{"line_number":187,"context_line":"        return self._fields(res, fields)"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"    def _get_network_context_by_service_context(self, context,"},{"line_number":190,"context_line":"                                                svc_ctxt_id):"},{"line_number":191,"context_line":"        net_query \u003d context.session.query(NetworkContext)"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2FokE%3D","line":188,"updated":"2014-03-02 10:39:24.000000000","message":"Similar comment as the above.\n\n  def _get_resource_context_by_service_context(\n      self, context, svc_ctxt_id, resource_name):\n    query \u003d context.session.query(ctxt_class_map[resource_name])\n    return query.filter_by(service_context_id\u003dsvc_ctxt_id).all()","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"30485010b49dd6f2f5c56df7b5c80fd90e7dc6a6","unresolved":false,"context_lines":[{"line_number":185,"context_line":"        res \u003d {\u0027service_context_id\u0027: svc_ctxt[\u0027id\u0027],"},{"line_number":186,"context_line":"               \u0027tenant_id\u0027: svc_ctxt[\u0027tenant_id\u0027]}"},{"line_number":187,"context_line":"        return self._fields(res, fields)"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"    def _get_network_context_by_service_context(self, context,"},{"line_number":190,"context_line":"                                                svc_ctxt_id):"},{"line_number":191,"context_line":"        net_query \u003d context.session.query(NetworkContext)"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F8tE%3D","line":188,"in_reply_to":"AAAAVX%2F%2FokE%3D","updated":"2014-03-03 08:41:28.000000000","message":"Done","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        return router_query.filter_by(service_context_id\u003dsvc_ctxt_id).all()"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    def _process_service_context(self, context, service_context):"},{"line_number":208,"context_line":"        LOG.debug(_(\"_process_service_context_for_firewall() called\"))"},{"line_number":209,"context_line":"        sctxt \u003d service_context"},{"line_number":210,"context_line":"        tenant_id \u003d self._get_tenant_id_for_create(context, service_context)"},{"line_number":211,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2FoeA%3D","line":208,"updated":"2014-03-02 10:39:24.000000000","message":"This module is not specific to FWaaS. \"for_firewall \" is unnecessary.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"30485010b49dd6f2f5c56df7b5c80fd90e7dc6a6","unresolved":false,"context_lines":[{"line_number":205,"context_line":"        return router_query.filter_by(service_context_id\u003dsvc_ctxt_id).all()"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    def _process_service_context(self, context, service_context):"},{"line_number":208,"context_line":"        LOG.debug(_(\"_process_service_context_for_firewall() called\"))"},{"line_number":209,"context_line":"        sctxt \u003d service_context"},{"line_number":210,"context_line":"        tenant_id \u003d self._get_tenant_id_for_create(context, service_context)"},{"line_number":211,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F8tA%3D","line":208,"in_reply_to":"AAAAVX%2F%2FoeA%3D","updated":"2014-03-03 08:41:28.000000000","message":"Done","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":222,"context_line":"                                    (\u0027routers\u0027,"},{"line_number":223,"context_line":"                                     self._process_router_context)]:"},{"line_number":224,"context_line":"            if attributes.is_attr_set(sctxt.get(c_name)):"},{"line_number":225,"context_line":"                process_f(context, service_context_db, sctxt[c_name])"},{"line_number":226,"context_line":"        return service_context_db"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def _process_network_context(self, context, service_context_db, networks):"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2Foi4%3D","line":225,"updated":"2014-03-02 10:39:24.000000000","message":"Consdier:\n\n  for resource in [\u0027networks\u0027, \u0027subnets\u0027, \u0027ports\u0027, \u0027routes\u0027]:\n      if attributes.is_attr_set(sctxt.get(resource)):\n          process_f \u003d getattr(self, \u0027_process_%s_context\u0027 % resource)\n          process_f(context, service_context_db, sctxt[resource])","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"30485010b49dd6f2f5c56df7b5c80fd90e7dc6a6","unresolved":false,"context_lines":[{"line_number":222,"context_line":"                                    (\u0027routers\u0027,"},{"line_number":223,"context_line":"                                     self._process_router_context)]:"},{"line_number":224,"context_line":"            if attributes.is_attr_set(sctxt.get(c_name)):"},{"line_number":225,"context_line":"                process_f(context, service_context_db, sctxt[c_name])"},{"line_number":226,"context_line":"        return service_context_db"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def _process_network_context(self, context, service_context_db, networks):"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F8sw%3D","line":225,"in_reply_to":"AAAAVX%2F%2Foi4%3D","updated":"2014-03-03 08:41:28.000000000","message":"Done","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":224,"context_line":"            if attributes.is_attr_set(sctxt.get(c_name)):"},{"line_number":225,"context_line":"                process_f(context, service_context_db, sctxt[c_name])"},{"line_number":226,"context_line":"        return service_context_db"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def _process_network_context(self, context, service_context_db, networks):"},{"line_number":229,"context_line":"        LOG.debug(_(\"_process_network_context() called\"))"},{"line_number":230,"context_line":"        tenant_id \u003d service_context_db.tenant_id"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2Foio%3D","line":227,"updated":"2014-03-02 10:39:24.000000000","message":"The same comment applies to the below. The methods below are very similar and it would be better to define a common method which takes \"resource\" name as an argument.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"30485010b49dd6f2f5c56df7b5c80fd90e7dc6a6","unresolved":false,"context_lines":[{"line_number":224,"context_line":"            if attributes.is_attr_set(sctxt.get(c_name)):"},{"line_number":225,"context_line":"                process_f(context, service_context_db, sctxt[c_name])"},{"line_number":226,"context_line":"        return service_context_db"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def _process_network_context(self, context, service_context_db, networks):"},{"line_number":229,"context_line":"        LOG.debug(_(\"_process_network_context() called\"))"},{"line_number":230,"context_line":"        tenant_id \u003d service_context_db.tenant_id"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F8ss%3D","line":227,"in_reply_to":"AAAAVX%2F%2Foio%3D","updated":"2014-03-03 08:41:28.000000000","message":"Done","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":6995,"name":"Sridar Kandaswamy","email":"skandasw@yahoo.com","username":"skandasw"},"change_message_id":"469e3681304da5523ece48f7b109af307834c0ab","unresolved":false,"context_lines":[{"line_number":261,"context_line":"                                              port_id\u003dport_id)"},{"line_number":262,"context_line":"                context.session.add(port_context_db)"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"    def _process_router_context(self, context, service_context_db, routers):"},{"line_number":265,"context_line":"        LOG.debug(_(\"_process_router_context() called\"))"},{"line_number":266,"context_line":"        tenant_id \u003d service_context_db.tenant_id"},{"line_number":267,"context_line":"        for router_id in routers:"}],"source_content_type":"text/x-python","patch_set":36,"id":"AAAAVn%2F%2F8%2FM%3D","line":264,"updated":"2014-03-03 08:02:24.000000000","message":"Just a general clarification for my understanding, where do we handle the case if a resource instance like a router that is provided is on a different tenant than the fw.","commit_id":"1696072440477ba0ef020163e140d558b763a97b"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"f73e81d28a423066c924c024712b9875f4cfa3d0","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"class ServiceContextMixin(object):"},{"line_number":153,"context_line":"    \"\"\"Mixin class for Service Context DB implementation.\"\"\""},{"line_number":154,"context_line":"    ctxt_class_map \u003d {"},{"line_number":155,"context_line":"        \u0027service\u0027: ServiceContext,"},{"line_number":156,"context_line":"        \u0027network\u0027: NetworkContext,"},{"line_number":157,"context_line":"        \u0027subnet\u0027: SubnetContext,"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F294%3D","line":154,"updated":"2014-03-03 19:07:47.000000000","message":"nit: ctxt -\u003e context","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":151,"context_line":""},{"line_number":152,"context_line":"class ServiceContextMixin(object):"},{"line_number":153,"context_line":"    \"\"\"Mixin class for Service Context DB implementation.\"\"\""},{"line_number":154,"context_line":"    ctxt_class_map \u003d {"},{"line_number":155,"context_line":"        \u0027service\u0027: ServiceContext,"},{"line_number":156,"context_line":"        \u0027network\u0027: NetworkContext,"},{"line_number":157,"context_line":"        \u0027subnet\u0027: SubnetContext,"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2HA%3D","line":154,"in_reply_to":"AAAAVn%2F%2F294%3D","updated":"2014-03-03 20:48:24.000000000","message":"Done","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"f73e81d28a423066c924c024712b9875f4cfa3d0","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        \u0027port\u0027: PortContext,"},{"line_number":159,"context_line":"        \u0027router\u0027: RouterContext"},{"line_number":160,"context_line":"    }"},{"line_number":161,"context_line":"    ctxt_exc_notfound_map \u003d {"},{"line_number":162,"context_line":"        \u0027service\u0027: ServiceContextNotFound,"},{"line_number":163,"context_line":"        \u0027network\u0027: NetworkContextNotFound,"},{"line_number":164,"context_line":"        \u0027subnet\u0027: SubnetContextNotFound,"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F29w%3D","line":161,"updated":"2014-03-03 19:07:47.000000000","message":"ditto","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        \u0027port\u0027: PortContext,"},{"line_number":159,"context_line":"        \u0027router\u0027: RouterContext"},{"line_number":160,"context_line":"    }"},{"line_number":161,"context_line":"    ctxt_exc_notfound_map \u003d {"},{"line_number":162,"context_line":"        \u0027service\u0027: ServiceContextNotFound,"},{"line_number":163,"context_line":"        \u0027network\u0027: NetworkContextNotFound,"},{"line_number":164,"context_line":"        \u0027subnet\u0027: SubnetContextNotFound,"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2FY%3D","line":161,"in_reply_to":"AAAAVn%2F%2F29w%3D","updated":"2014-03-03 20:48:24.000000000","message":"Done","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7576,"name":"Gary Duan","email":"garyduan@gmail.com","username":"garyduan"},"change_message_id":"b539797f6ca3d88957e0bee969edfa2b754dbf7f","unresolved":false,"context_lines":[{"line_number":202,"context_line":"                                  resource):"},{"line_number":203,"context_line":"        LOG.debug(_(\"_process_resource_context() called\"))"},{"line_number":204,"context_line":"        tenant_id \u003d service_context_db.tenant_id"},{"line_number":205,"context_line":"        res_id_name \u003d \"%s_id\" % resource[0:-1]"},{"line_number":206,"context_line":"        for res_id in res_list:"},{"line_number":207,"context_line":"            with context.session.begin(subtransactions\u003dTrue):"},{"line_number":208,"context_line":"                args \u003d {\u0027id\u0027: uuidutils.generate_uuid(),"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F234%3D","line":205,"updated":"2014-03-03 19:16:48.000000000","message":"Is this line useful?","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":202,"context_line":"                                  resource):"},{"line_number":203,"context_line":"        LOG.debug(_(\"_process_resource_context() called\"))"},{"line_number":204,"context_line":"        tenant_id \u003d service_context_db.tenant_id"},{"line_number":205,"context_line":"        res_id_name \u003d \"%s_id\" % resource[0:-1]"},{"line_number":206,"context_line":"        for res_id in res_list:"},{"line_number":207,"context_line":"            with context.session.begin(subtransactions\u003dTrue):"},{"line_number":208,"context_line":"                args \u003d {\u0027id\u0027: uuidutils.generate_uuid(),"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2E0%3D","line":205,"in_reply_to":"AAAAVn%2F%2F234%3D","updated":"2014-03-03 20:48:24.000000000","message":"As Salvatore mentioned, I am using it to build network_id, port_id etc for line 212.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"109ad5d01bfff8caad2b824cffa4b91390caae46","unresolved":false,"context_lines":[{"line_number":202,"context_line":"                                  resource):"},{"line_number":203,"context_line":"        LOG.debug(_(\"_process_resource_context() called\"))"},{"line_number":204,"context_line":"        tenant_id \u003d service_context_db.tenant_id"},{"line_number":205,"context_line":"        res_id_name \u003d \"%s_id\" % resource[0:-1]"},{"line_number":206,"context_line":"        for res_id in res_list:"},{"line_number":207,"context_line":"            with context.session.begin(subtransactions\u003dTrue):"},{"line_number":208,"context_line":"                args \u003d {\u0027id\u0027: uuidutils.generate_uuid(),"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2vs%3D","line":205,"in_reply_to":"AAAAVn%2F%2F234%3D","updated":"2014-03-03 19:38:54.000000000","message":"It is added to args and then passed in line 212","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"}],"neutron/extensions/firewall.py":[{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"bc3c57e4bb0ed0596ddc3691bf3029ee06ec1425","unresolved":false,"context_lines":[{"line_number":302,"context_line":"                            \u0027allow_put\u0027: True,"},{"line_number":303,"context_line":"                            \u0027is_visible\u0027: True,"},{"line_number":304,"context_line":"                            \u0027default\u0027: None,"},{"line_number":305,"context_line":"                            \u0027validate\u0027:"},{"line_number":306,"context_line":"                            {\u0027type:dict_or_nodata\u0027:"},{"line_number":307,"context_line":"                             {\u0027routers\u0027: {\u0027allow_post\u0027: True,"},{"line_number":308,"context_line":"                                          \u0027allow_put\u0027: True,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2F51g%3D","line":305,"updated":"2014-01-07 01:06:01.000000000","message":"Instead of validate I would suggest using convert_to here and writing the convert_to method along the lines of attr.convert_kvp_list_to_dict, such that we validate and convert to the format you have below. That was we can use this service_context attribute across services as opposed to having to copy/paste this block of code everywhere else.","commit_id":"6d20993e6d785ae4bdfa654398ddc1463d2f428b"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"375fc5110a043f12011df219df92c582128e5c4d","unresolved":false,"context_lines":[{"line_number":302,"context_line":"                            \u0027allow_put\u0027: True,"},{"line_number":303,"context_line":"                            \u0027is_visible\u0027: True,"},{"line_number":304,"context_line":"                            \u0027default\u0027: None,"},{"line_number":305,"context_line":"                            \u0027validate\u0027:"},{"line_number":306,"context_line":"                            {\u0027type:dict_or_nodata\u0027:"},{"line_number":307,"context_line":"                             {\u0027routers\u0027: {\u0027allow_post\u0027: True,"},{"line_number":308,"context_line":"                                          \u0027allow_put\u0027: True,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUX%2F%2B8xk%3D","line":305,"in_reply_to":"AAAAUH%2F%2F51g%3D","updated":"2014-02-18 02:04:10.000000000","message":"Done","commit_id":"6d20993e6d785ae4bdfa654398ddc1463d2f428b"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"6f4d8cce6278fd9561585bf7d07d143c842101eb","unresolved":false,"context_lines":[{"line_number":302,"context_line":"                            \u0027allow_put\u0027: True,"},{"line_number":303,"context_line":"                            \u0027is_visible\u0027: True,"},{"line_number":304,"context_line":"                            \u0027default\u0027: None,"},{"line_number":305,"context_line":"                            \u0027validate\u0027:"},{"line_number":306,"context_line":"                            {\u0027type:dict_or_nodata\u0027:"},{"line_number":307,"context_line":"                             {\u0027routers\u0027: {\u0027allow_post\u0027: True,"},{"line_number":308,"context_line":"                                          \u0027allow_put\u0027: True,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAUH%2F%2F5os%3D","line":305,"in_reply_to":"AAAAUH%2F%2F51g%3D","updated":"2014-01-07 02:12:41.000000000","message":"Sumit,\n\nCan you please confirm that you want to take a string in the JSON input. Some like \n\n\"service_context\": \"routers\u003d[2f7ea37c-60e9-45c4-bab8-122030971483, 5fd6c1e4-a867-4c6f-8389-bd9d4881a1a0]\"\n\nThat\u0027s what I tried to do it Patch 2 and Patch 3. I reverted that assuming that free-form strings are discouraged.\n\nPlease confirm that you want \"key\u003dvalue\" kind of string in the JSON.\n\nThanks.","commit_id":"6d20993e6d785ae4bdfa654398ddc1463d2f428b"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"bc8cc161fb5878b6c5ca9e4d925c9f95b68e3b95","unresolved":false,"context_lines":[{"line_number":99,"context_line":"    message \u003d _(\"%(driver)s: Internal driver error.\")"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"# Service Context Exceptions"},{"line_number":103,"context_line":"class ServiceContextNotFound(qexception.NotFound):"},{"line_number":104,"context_line":"    message \u003d _(\"Service Context %(id) could not be found.\")"},{"line_number":105,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAUH%2F%2B50k%3D","line":102,"updated":"2014-01-20 22:00:07.000000000","message":"Why are the Exception classes here when they aren\u0027t specifically related to FW stuff, then referenced in neutron/db/service_context.py where the only reason for importing from neutron.extensions.firewall is to get these exceptions?","commit_id":"b13f6aaf7364b7763c4b379ba2fba1a249e4e873"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"18b7a2034fb81c1df6508f919d0053b60fbd4ae0","unresolved":false,"context_lines":[{"line_number":99,"context_line":"    message \u003d _(\"%(driver)s: Internal driver error.\")"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"# Service Context Exceptions"},{"line_number":103,"context_line":"class ServiceContextNotFound(qexception.NotFound):"},{"line_number":104,"context_line":"    message \u003d _(\"Service Context %(id) could not be found.\")"},{"line_number":105,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAUX%2F%2B8t4%3D","line":102,"in_reply_to":"AAAAUH%2F%2B50k%3D","updated":"2014-02-18 02:13:00.000000000","message":"Done","commit_id":"b13f6aaf7364b7763c4b379ba2fba1a249e4e873"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":279,"context_line":"                               \u0027is_visible\u0027: True},"},{"line_number":280,"context_line":"        \u0027service_context\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":281,"context_line":"                            \u0027is_visible\u0027: True, \u0027default\u0027: None,"},{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2Foas%3D","line":282,"updated":"2014-03-02 10:39:24.000000000","message":"It is difficult to know the data structure from this type of validation. Can we use the following syntax?\n\n  \u0027validate\u0027: {\u0027type:dict_or_nodata\u0027:\n    {\u0027networks\u0027: {\u0027type:uuid_list\u0027: None, \u0027required\u0027: False\u0027},\n     \u0027routers\u0027: {\u0027type:uuid_list\u0027: None, \u0027required\u0027: False},\n     ....\n   }\n\nI think it is easier to understand.\nI am not sure what is the exact syntax of service_context though :-(","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"360cc066ac9286e22811fa89103460940d53243f","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2FpT4%3D","line":285,"updated":"2014-03-02 03:18:12.000000000","message":"Perhaps we should not pass routers, networks,... from here but check for them directly inside the validate function. That way the API will be consistent across services.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"3469ef660675bb76e291ede56d9d85001e5e6d69","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2BMQ%3D","line":285,"in_reply_to":"AAAAVX%2F%2FohY%3D","updated":"2014-03-03 03:36:46.000000000","message":"The problem with making service_context an extended attribute is that a plugin may or may not choose to use it. The original intention here was to introduce a uniform notion of service insertion across plugins and services. Certain services/plugins may only choose to support default insertion, but they should be at least aware of the notion of the service_context.\n\nI agree that the way it is being implemented here is probably not the best way of realizing that objective.\n\nMy earlier suggestion was in the direction of using the validate function to normalize the use of service_context across the services. Services other than firewall, would still need to add this attribute in their resource definition, but when they do, at least the usage will be uniform across services in Neutron.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2FohY%3D","line":285,"in_reply_to":"AAAAVX%2F%2FpT4%3D","updated":"2014-03-02 10:39:24.000000000","message":"(This comment might be inconsistent with the above my comment)\n\nThis file is fwaas extension, so it looks good. Or is it better to define service_extension attribute for all services?\n\nIn addition, a supported list should be defined as a constant.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"ec4f9c43a96cd8ef2be8f1e5ad9c01299085447b","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F93U%3D","line":285,"in_reply_to":"AAAAVn%2F%2F%2BMQ%3D","updated":"2014-03-03 05:09:24.000000000","message":"Thanks for the clarification. I totally agree with the direction you mentioned. Extending attributes with considering a variety of plugin supports looks not easy problem.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"8f8812396bbf42274d7e825867a646bc27dc7eba","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2FZ40%3D","line":285,"in_reply_to":"AAAAVn%2F%2F8pI%3D","updated":"2014-03-06 09:53:04.000000000","message":"(there are many patch sets and I am afraid I can\u0027t follow the discussion)\n\nIn my understanding, what Sumit raised can be split into the following questions:\n- (a) Should supported insertion modes be consistent across services?\n- (b) Should supported insertion modes be changed depending on plugin and driver implementation for a service?\n\nFor (b), I vote yes. I totally agree the modes should not vary on implementations even if they are actually supported or not.\n\nFor (a), I am not sure all services can support all possible insertion type. If No, we should define supported modes in attribute map here.\n\nIf Yes, there are several ways to define API validation schema. \n(1) To check supported modes in the validator.\n(2) To use service_context validator and pass supported types in an attribute map\n(3) not to use service_context validator and use a general dict_of_list validator, define supported modes in an attribute map here. (It is easy to understand its schema definition compared to the above two.) We can define subelement of attribute map in a different module.\n\nThe attribute map is static, so all of the above don\u0027t differ so much.\n\nMy suggestion is to start from an assumption that all services can support common and consistent insertion mode. If it turns out not correct, let\u0027s consider per-service supported insertion modes. We can change it without affecting API schema.\n\nRegarding how to validate, I prefer to (3) a bit because I would like to avoid hiding a data schema, but have no strong opinion.\n\nThought?","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"71597c61e62fff7c4a3463f99dd944c3028e7a23","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F8pI%3D","line":285,"in_reply_to":"AAAAVn%2F%2F93U%3D","updated":"2014-03-03 08:49:21.000000000","message":"Sumit/Akihiro,\n\nI know Sumit wants the list of allowed resources (for insertion) inside validator function. \n\nAkihiro, do you also prefer that?\n\nI like the idea of defining constants. This gives the flexibilty for each service to say that resource they support (while we still have one place to see all the different insertion types supported by all resources). \n\nI think it may not be possible for all services to support all insertion types.\n\nIf everyone agrees that the insertion types be part of validator, I can move it in.\n\nThanks,\n-Rajesh Mohan","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"125acb6af45408fad16fdc85ef1f730e09840e70","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAWH%2F9Vi0%3D","line":285,"in_reply_to":"AAAAVn%2F%2FZ40%3D","updated":"2014-04-06 18:12:43.000000000","message":"Akhiro, I agree with your statement:\n\"My suggestion is to start from an assumption that all services can support common and consistent insertion mode.\"\n\nThe current approach is to enforce that via the validator function (I believe this is option 2 in your comment). If I understand your option 3, it makes the definition of the service_context to be service specific, and it breaks the aforementioned goal to define the insertion modes across services. Note that the service_context itself is optional.\n\nTo your point about facilitating the schema definition, would it help if it was documented in place here?","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"109ad5d01bfff8caad2b824cffa4b91390caae46","unresolved":false,"context_lines":[{"line_number":277,"context_line":"        \u0027firewall_policy_id\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":278,"context_line":"                               \u0027validate\u0027: {\u0027type:uuid_or_none\u0027: None},"},{"line_number":279,"context_line":"                               \u0027is_visible\u0027: True},"},{"line_number":280,"context_line":"        \u0027service_context\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":281,"context_line":"                            \u0027is_visible\u0027: True, \u0027default\u0027: None,"},{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F4OQ%3D","line":280,"updated":"2014-03-03 19:38:54.000000000","message":"This change needs a default value to be fine from a backward compatibility perspective.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":277,"context_line":"        \u0027firewall_policy_id\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":278,"context_line":"                               \u0027validate\u0027: {\u0027type:uuid_or_none\u0027: None},"},{"line_number":279,"context_line":"                               \u0027is_visible\u0027: True},"},{"line_number":280,"context_line":"        \u0027service_context\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":281,"context_line":"                            \u0027is_visible\u0027: True, \u0027default\u0027: None,"},{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2B4%3D","line":280,"in_reply_to":"AAAAVn%2F%2F4OQ%3D","updated":"2014-03-03 20:48:24.000000000","message":"When the key \u0027service_context\u0027 is not present in the dict, the code falls back to old behavior.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"109ad5d01bfff8caad2b824cffa4b91390caae46","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F33o%3D","line":285,"updated":"2014-03-03 19:38:54.000000000","message":"I am unfortunately not fully understanding this API change and therefore I have some questions:\n\n- A context defines somehow the kind of object a firewall can be bound to, and also provides the uuids of the objects for which it should be enabled. Is this correct?\n- Can a firewall have multiple contexts at the same time (e.g.: router and network)\n- What would be the use case for a subnet service context?\n\n[The last two questions have been asked as it was not clear to me after reading the spec]","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F160%3D","line":285,"in_reply_to":"AAAAVn%2F%2F33o%3D","updated":"2014-03-03 20:48:24.000000000","message":"1) A context defines somehow the kind of object a firewall can be bound to, and also provides the uuids of the objects for which it should be enabled. Is this correct?\nYes.\n\n2) Can a firewall have multiple contexts at the same time (e.g.: router and network)\nIt depends on the plugin (flavor or STF in future releases). In case of DELL plugin, we could specify router and subnet - which means that we need the firewall to be inserted between router and the subnet in transparent bridge mode. This is something that works in standalone neutron mode (without controller). We need this insertion mode as a way to introduce firewall without renumbering the network.\n\n3) What would be the use case for a subnet service context?\nTo me, \u0027subnet\u0027 makes more sense than network. We would have a firewall connected to specific subnet (rather that the network segment).","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"d2db5841e5480688b9ec5a69cabe746caaea932d","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":39,"id":"AAAAVn%2F%2Fs2c%3D","line":285,"updated":"2014-03-04 15:59:49.000000000","message":"My suggestion from the earlier patch set still stands","commit_id":"4c2455ba1a80e1ccbc6e504fc7bd53e05461bd0a"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"d1747c390772d553f3010c6047ecba9ba33c585d","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":39,"id":"AAAAVn%2F%2FsFM%3D","line":285,"in_reply_to":"AAAAVn%2F%2Fs2c%3D","updated":"2014-03-04 17:04:14.000000000","message":"Done","commit_id":"4c2455ba1a80e1ccbc6e504fc7bd53e05461bd0a"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"3d1d56b25f5b4cc47c44a9cd6d589741f87df4da","unresolved":false,"context_lines":[{"line_number":278,"context_line":"                               \u0027validate\u0027: {\u0027type:uuid_or_none\u0027: None},"},{"line_number":279,"context_line":"                               \u0027is_visible\u0027: True},"},{"line_number":280,"context_line":"        \u0027service_context\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":281,"context_line":"                            \u0027is_visible\u0027: True, \u0027default\u0027: None,"},{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAVn%2F%2FZz4%3D","line":281,"updated":"2014-03-06 10:37:46.000000000","message":"Regarding service_context validator, I commented in patch set 32 to make it easy to trace the discussion.","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"5cd7c3523bd8e0346ee9a2a68ed7d554c4797cbd","unresolved":false,"context_lines":[{"line_number":278,"context_line":"                               \u0027validate\u0027: {\u0027type:uuid_or_none\u0027: None},"},{"line_number":279,"context_line":"                               \u0027is_visible\u0027: True},"},{"line_number":280,"context_line":"        \u0027service_context\u0027: {\u0027allow_post\u0027: True, \u0027allow_put\u0027: True,"},{"line_number":281,"context_line":"                            \u0027is_visible\u0027: True, \u0027default\u0027: None,"},{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAWH%2F9yTY%3D","line":281,"in_reply_to":"AAAAVn%2F%2FZz4%3D","updated":"2014-04-02 08:02:21.000000000","message":"Will look at patch32","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"3d1d56b25f5b4cc47c44a9cd6d589741f87df4da","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAVn%2F%2FZzg%3D","line":285,"updated":"2014-03-06 10:37:46.000000000","message":"At now service_context validator does not use its argument, so the parameter here should be None for consistency unless the validator is changed.","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"5cd7c3523bd8e0346ee9a2a68ed7d554c4797cbd","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                            \u0027validate\u0027: {\u0027type:service_context\u0027: [\"routers\","},{"line_number":283,"context_line":"                                                                  \"networks\","},{"line_number":284,"context_line":"                                                                  \"ports\","},{"line_number":285,"context_line":"                                                                  \"subnets\"]}}"},{"line_number":286,"context_line":"    },"},{"line_number":287,"context_line":"}"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAWH%2F9yUA%3D","line":285,"in_reply_to":"AAAAVn%2F%2FZzg%3D","updated":"2014-04-02 08:02:21.000000000","message":"Done","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"}],"neutron/extensions/servicecontext.py":[{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"3ed746394052d040c90ceacfa77b187a2358242f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright (c) 2012 OpenStack Foundation."},{"line_number":4,"context_line":"# All rights reserved."},{"line_number":5,"context_line":"#"},{"line_number":6,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8%2Fh4%3D","line":3,"updated":"2013-12-17 23:18:57.000000000","message":"2013","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"a32cb03c89615a35764785d71c1374b887557806","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# vim: tabstop\u003d4 shiftwidth\u003d4 softtabstop\u003d4"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Copyright (c) 2012 OpenStack Foundation."},{"line_number":4,"context_line":"# All rights reserved."},{"line_number":5,"context_line":"#"},{"line_number":6,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2B8zw%3D","line":3,"in_reply_to":"AAAATn%2F8%2Fh4%3D","updated":"2014-02-18 01:59:43.000000000","message":"Done","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":490,"name":"Sumit Naiksatam","email":"sumitnaiksatam@gmail.com","username":"snaiksat"},"change_message_id":"3ed746394052d040c90ceacfa77b187a2358242f","unresolved":false,"context_lines":[{"line_number":73,"context_line":"}"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"class Servicecontext(extensions.ExtensionDescriptor):"},{"line_number":77,"context_line":"    \"\"\"Extension class supporting service insertion context."},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    This class is used by neutron\u0027s extension framework to make"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATn%2F8%2Fgs%3D","line":76,"updated":"2013-12-17 23:18:57.000000000","message":"We probably don\u0027t need this as a separate extension. We can add service_context as a single attribute in FWaaS, VPNaaS, etc.","commit_id":"402af663c57426451b2b936d19351fd436798a91"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"a32cb03c89615a35764785d71c1374b887557806","unresolved":false,"context_lines":[{"line_number":73,"context_line":"}"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"class Servicecontext(extensions.ExtensionDescriptor):"},{"line_number":77,"context_line":"    \"\"\"Extension class supporting service insertion context."},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    This class is used by neutron\u0027s extension framework to make"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2B8z0%3D","line":76,"in_reply_to":"AAAATn%2F8%2Fgs%3D","updated":"2014-02-18 01:59:43.000000000","message":"Done","commit_id":"402af663c57426451b2b936d19351fd436798a91"}],"neutron/services/firewall/agents/l3reference/firewall_l3_agent.py":[{"author":{"_account_id":7591,"name":"Kanzhe Jiang","email":"kanzhe@gmail.com","username":"kanzhe"},"change_message_id":"1efdb2da28c1014352446ff5d5abfbb70ca8b9af","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        LOG.debug(_(\"%(func_name)s from agent for fw: %(fwid)s\"),"},{"line_number":111,"context_line":"                  {\u0027func_name\u0027: func_name, \u0027fwid\u0027: fw[\u0027id\u0027]})"},{"line_number":112,"context_line":"        target_routers \u003d None"},{"line_number":113,"context_line":"        if fw.get(\u0027service_context\u0027):"},{"line_number":114,"context_line":"            target_routers \u003d fw[\u0027service_context\u0027][\u0027routers\u0027]"},{"line_number":115,"context_line":"        try:"},{"line_number":116,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2Fq8%3D","line":113,"updated":"2014-03-02 20:27:08.000000000","message":"\u0027routers\u0027 may not be in fw.get(\u0027service_context\u0027).\nif fw.get(\u0027service_context\u0027) and \u0027routers\u0027 in fw.get(\u0027service_context\u0027):","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"cca933bf23cc620e6714b8a78dfbfbf1f0297c85","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        LOG.debug(_(\"%(func_name)s from agent for fw: %(fwid)s\"),"},{"line_number":111,"context_line":"                  {\u0027func_name\u0027: func_name, \u0027fwid\u0027: fw[\u0027id\u0027]})"},{"line_number":112,"context_line":"        target_routers \u003d None"},{"line_number":113,"context_line":"        if fw.get(\u0027service_context\u0027):"},{"line_number":114,"context_line":"            target_routers \u003d fw[\u0027service_context\u0027][\u0027routers\u0027]"},{"line_number":115,"context_line":"        try:"},{"line_number":116,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2FUk%3D","line":113,"in_reply_to":"AAAAVn%2F%2F%2Fk0%3D","updated":"2014-03-02 22:21:19.000000000","message":"Done","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"31ab2d49dd725b368b30ff655be3faf3db7de81c","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        LOG.debug(_(\"%(func_name)s from agent for fw: %(fwid)s\"),"},{"line_number":111,"context_line":"                  {\u0027func_name\u0027: func_name, \u0027fwid\u0027: fw[\u0027id\u0027]})"},{"line_number":112,"context_line":"        target_routers \u003d None"},{"line_number":113,"context_line":"        if fw.get(\u0027service_context\u0027):"},{"line_number":114,"context_line":"            target_routers \u003d fw[\u0027service_context\u0027][\u0027routers\u0027]"},{"line_number":115,"context_line":"        try:"},{"line_number":116,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2BN4%3D","line":113,"in_reply_to":"AAAAVn%2F%2F%2Fk0%3D","updated":"2014-03-03 03:38:06.000000000","message":"Kevin, we still need to make sure \u0027service_context\u0027 is not None.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"cca933bf23cc620e6714b8a78dfbfbf1f0297c85","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        LOG.debug(_(\"%(func_name)s from agent for fw: %(fwid)s\"),"},{"line_number":111,"context_line":"                  {\u0027func_name\u0027: func_name, \u0027fwid\u0027: fw[\u0027id\u0027]})"},{"line_number":112,"context_line":"        target_routers \u003d None"},{"line_number":113,"context_line":"        if fw.get(\u0027service_context\u0027):"},{"line_number":114,"context_line":"            target_routers \u003d fw[\u0027service_context\u0027][\u0027routers\u0027]"},{"line_number":115,"context_line":"        try:"},{"line_number":116,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2FUo%3D","line":113,"in_reply_to":"AAAAVn%2F%2F%2Fq8%3D","updated":"2014-03-02 22:21:19.000000000","message":"Done","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"31ab2d49dd725b368b30ff655be3faf3db7de81c","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        LOG.debug(_(\"%(func_name)s from agent for fw: %(fwid)s\"),"},{"line_number":111,"context_line":"                  {\u0027func_name\u0027: func_name, \u0027fwid\u0027: fw[\u0027id\u0027]})"},{"line_number":112,"context_line":"        target_routers \u003d None"},{"line_number":113,"context_line":"        if fw.get(\u0027service_context\u0027):"},{"line_number":114,"context_line":"            target_routers \u003d fw[\u0027service_context\u0027][\u0027routers\u0027]"},{"line_number":115,"context_line":"        try:"},{"line_number":116,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2BNI%3D","line":113,"in_reply_to":"AAAAVn%2F%2F%2Fq8%3D","updated":"2014-03-03 03:38:06.000000000","message":"Thanks. Also added a test case when \"routers\" is not part of service context.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"0af4c4c08b2cc82891645e832d89d66159535436","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        LOG.debug(_(\"%(func_name)s from agent for fw: %(fwid)s\"),"},{"line_number":111,"context_line":"                  {\u0027func_name\u0027: func_name, \u0027fwid\u0027: fw[\u0027id\u0027]})"},{"line_number":112,"context_line":"        target_routers \u003d None"},{"line_number":113,"context_line":"        if fw.get(\u0027service_context\u0027):"},{"line_number":114,"context_line":"            target_routers \u003d fw[\u0027service_context\u0027][\u0027routers\u0027]"},{"line_number":115,"context_line":"        try:"},{"line_number":116,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2Fk0%3D","line":113,"in_reply_to":"AAAAVn%2F%2F%2Fq8%3D","updated":"2014-03-02 20:52:19.000000000","message":"or\n\nif fw.get(\u0027service_context\u0027, {}).get(\u0027routers\u0027)","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7591,"name":"Kanzhe Jiang","email":"kanzhe@gmail.com","username":"kanzhe"},"change_message_id":"1efdb2da28c1014352446ff5d5abfbb70ca8b9af","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"},{"line_number":117,"context_line":"            if target_routers:"},{"line_number":118,"context_line":"                routers \u003d [router for router in routers"},{"line_number":119,"context_line":"                           if router[\u0027id\u0027] in target_routers]"},{"line_number":120,"context_line":"            router_info_list \u003d self._get_router_info_list_for_tenant("},{"line_number":121,"context_line":"                routers,"},{"line_number":122,"context_line":"                fw[\u0027tenant_id\u0027])"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2FpA%3D","line":119,"updated":"2014-03-02 20:27:08.000000000","message":"Nit-picking.\nrouters \u003d filter(lambda x:x[\u0027id\u0027] in target_routers, routers)","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"ec4f9c43a96cd8ef2be8f1e5ad9c01299085447b","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"},{"line_number":117,"context_line":"            if target_routers:"},{"line_number":118,"context_line":"                routers \u003d [router for router in routers"},{"line_number":119,"context_line":"                           if router[\u0027id\u0027] in target_routers]"},{"line_number":120,"context_line":"            router_info_list \u003d self._get_router_info_list_for_tenant("},{"line_number":121,"context_line":"                routers,"},{"line_number":122,"context_line":"                fw[\u0027tenant_id\u0027])"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F92o%3D","line":119,"in_reply_to":"AAAAVn%2F%2F%2FUY%3D","updated":"2014-03-03 05:09:24.000000000","message":"Note: List comprehensions is more effective than filter(), so we don\u0027t need to change it to filter() in this case.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"cca933bf23cc620e6714b8a78dfbfbf1f0297c85","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"},{"line_number":117,"context_line":"            if target_routers:"},{"line_number":118,"context_line":"                routers \u003d [router for router in routers"},{"line_number":119,"context_line":"                           if router[\u0027id\u0027] in target_routers]"},{"line_number":120,"context_line":"            router_info_list \u003d self._get_router_info_list_for_tenant("},{"line_number":121,"context_line":"                routers,"},{"line_number":122,"context_line":"                fw[\u0027tenant_id\u0027])"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F%2FUY%3D","line":119,"in_reply_to":"AAAAVn%2F%2F%2FpA%3D","updated":"2014-03-02 22:21:19.000000000","message":"Will pass this for now. Will get to it after I address other comments.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":6995,"name":"Sridar Kandaswamy","email":"skandasw@yahoo.com","username":"skandasw"},"change_message_id":"469e3681304da5523ece48f7b109af307834c0ab","unresolved":false,"context_lines":[{"line_number":104,"context_line":"            else:"},{"line_number":105,"context_line":"                router_info_list.append(self.router_info[rid])"},{"line_number":106,"context_line":"        return router_info_list"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def _invoke_driver_for_plugin_api(self, context, fw, func_name):"},{"line_number":109,"context_line":"        \"\"\"Invoke driver method for plugin API and provide status back.\"\"\""},{"line_number":110,"context_line":"        LOG.debug(_(\"%(func_name)s from agent for fw: %(fwid)s\"),"}],"source_content_type":"text/x-python","patch_set":36,"id":"AAAAVn%2F%2F9A8%3D","side":"PARENT","line":107,"updated":"2014-03-03 08:02:24.000000000","message":"In addition to to the below method,  u will need to  support a router list on the restart scenario and if we want to handle the case when a router in the router list just comes up.\n\nprocess_services_sync() , process_router_add.\n\nWe can decide how important this.","commit_id":"4e4c894c98dbb8705bb54a670c491b68f88316d7"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"2ff7b3de868ae262c3c1dc3a63d414a6d02e2096","unresolved":false,"context_lines":[{"line_number":104,"context_line":"            else:"},{"line_number":105,"context_line":"                router_info_list.append(self.router_info[rid])"},{"line_number":106,"context_line":"        return router_info_list"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def _invoke_driver_for_plugin_api(self, context, fw, func_name):"},{"line_number":109,"context_line":"        \"\"\"Invoke driver method for plugin API and provide status back.\"\"\""},{"line_number":110,"context_line":"        LOG.debug(_(\"%(func_name)s from agent for fw: %(fwid)s\"),"}],"source_content_type":"text/x-python","patch_set":36,"id":"AAAAVn%2F%2F8Pk%3D","side":"PARENT","line":107,"in_reply_to":"AAAAVn%2F%2F9A8%3D","updated":"2014-03-03 09:38:28.000000000","message":"Done","commit_id":"4e4c894c98dbb8705bb54a670c491b68f88316d7"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"090a6a7f0c01974ae32894a6492da50c59f4b12a","unresolved":false,"context_lines":[{"line_number":111,"context_line":"                  {\u0027func_name\u0027: func_name, \u0027fwid\u0027: fw[\u0027id\u0027]})"},{"line_number":112,"context_line":"        target_routers \u003d None"},{"line_number":113,"context_line":"        if (fw.get(\u0027service_context\u0027) and"},{"line_number":114,"context_line":"            fw[\u0027service_context\u0027].get(\u0027routers\u0027)):"},{"line_number":115,"context_line":"            target_routers \u003d fw[\u0027service_context\u0027][\u0027routers\u0027]"},{"line_number":116,"context_line":"        try:"},{"line_number":117,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"}],"source_content_type":"text/x-python","patch_set":36,"id":"AAAAVn%2F%2F9zQ%3D","line":114,"updated":"2014-03-03 05:27:05.000000000","message":"What I meant here was that this can be shortened to:\n\nfw.get(\u0027service_context\u0027, {}).get(\u0027routers\u0027)\n\nBy providing the empty dict as a default to the first \u0027get\u0027 call you can avoid the first explicit check.","commit_id":"1696072440477ba0ef020163e140d558b763a97b"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"0e4a60c78d5e0dae6498ea8f92ff7b1043ff3aec","unresolved":false,"context_lines":[{"line_number":111,"context_line":"                  {\u0027func_name\u0027: func_name, \u0027fwid\u0027: fw[\u0027id\u0027]})"},{"line_number":112,"context_line":"        target_routers \u003d None"},{"line_number":113,"context_line":"        if (fw.get(\u0027service_context\u0027) and"},{"line_number":114,"context_line":"            fw[\u0027service_context\u0027].get(\u0027routers\u0027)):"},{"line_number":115,"context_line":"            target_routers \u003d fw[\u0027service_context\u0027][\u0027routers\u0027]"},{"line_number":116,"context_line":"        try:"},{"line_number":117,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"}],"source_content_type":"text/x-python","patch_set":36,"id":"AAAAVn%2F%2F704%3D","line":114,"in_reply_to":"AAAAVn%2F%2F8Nk%3D","updated":"2014-03-03 10:16:02.000000000","message":"Oh, I see now. You\u0027re right, I was thinking you were just checking for existence in the dictionary. Sorry for bike-shedding! :-)","commit_id":"1696072440477ba0ef020163e140d558b763a97b"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"2ff7b3de868ae262c3c1dc3a63d414a6d02e2096","unresolved":false,"context_lines":[{"line_number":111,"context_line":"                  {\u0027func_name\u0027: func_name, \u0027fwid\u0027: fw[\u0027id\u0027]})"},{"line_number":112,"context_line":"        target_routers \u003d None"},{"line_number":113,"context_line":"        if (fw.get(\u0027service_context\u0027) and"},{"line_number":114,"context_line":"            fw[\u0027service_context\u0027].get(\u0027routers\u0027)):"},{"line_number":115,"context_line":"            target_routers \u003d fw[\u0027service_context\u0027][\u0027routers\u0027]"},{"line_number":116,"context_line":"        try:"},{"line_number":117,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"}],"source_content_type":"text/x-python","patch_set":36,"id":"AAAAVn%2F%2F8Nk%3D","line":114,"in_reply_to":"AAAAVn%2F%2F9zQ%3D","updated":"2014-03-03 09:38:28.000000000","message":"I understood what you meant in your earlier comment but I probably did not explain completely. Your suggestion would work if service_context is not part of the dicionary when it is None. However, we set it to None explicitly. So, the default value in \u0027get\u0027 will not be used as the key \u0027service_context\u0027 is present in the dict (and it may be None in some cases). That\u0027s why I did not pick your suggestion. Thanks for your comment.","commit_id":"1696072440477ba0ef020163e140d558b763a97b"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"109ad5d01bfff8caad2b824cffa4b91390caae46","unresolved":false,"context_lines":[{"line_number":117,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"},{"line_number":118,"context_line":"            if target_routers:"},{"line_number":119,"context_line":"                routers \u003d [router for router in routers"},{"line_number":120,"context_line":"                           if router[\u0027id\u0027] in target_routers]"},{"line_number":121,"context_line":"            router_info_list \u003d self._get_router_info_list_for_tenant("},{"line_number":122,"context_line":"                routers,"},{"line_number":123,"context_line":"                fw[\u0027tenant_id\u0027])"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F3y4%3D","line":120,"updated":"2014-03-03 19:38:54.000000000","message":"If no context is specified (which should be possible for backward compatibility) no routers will be selected this time.\n\nI don\u0027t know if that has been decided and agreed upon. I\u0027m just pointing out the fact that backward compatibility has been potentially broken.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":117,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"},{"line_number":118,"context_line":"            if target_routers:"},{"line_number":119,"context_line":"                routers \u003d [router for router in routers"},{"line_number":120,"context_line":"                           if router[\u0027id\u0027] in target_routers]"},{"line_number":121,"context_line":"            router_info_list \u003d self._get_router_info_list_for_tenant("},{"line_number":122,"context_line":"                routers,"},{"line_number":123,"context_line":"                fw[\u0027tenant_id\u0027])"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F16k%3D","line":120,"in_reply_to":"AAAAVn%2F%2F3y4%3D","updated":"2014-03-03 20:48:24.000000000","message":"No. If context is specified, the routers list is not touched. So, the behavior is not changed.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"113323d478c3735f4e70b75d3cdc9d2b1da44792","unresolved":false,"context_lines":[{"line_number":117,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"},{"line_number":118,"context_line":"            if target_routers:"},{"line_number":119,"context_line":"                routers \u003d [router for router in routers"},{"line_number":120,"context_line":"                           if router[\u0027id\u0027] in target_routers]"},{"line_number":121,"context_line":"            router_info_list \u003d self._get_router_info_list_for_tenant("},{"line_number":122,"context_line":"                routers,"},{"line_number":123,"context_line":"                fw[\u0027tenant_id\u0027])"}],"source_content_type":"text/x-python","patch_set":39,"id":"AAAAVn%2F%2FyJQ%3D","line":120,"updated":"2014-03-04 05:31:48.000000000","message":"IMO, we should pass the list of routers in the filter at the get_routers","commit_id":"4c2455ba1a80e1ccbc6e504fc7bd53e05461bd0a"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"47c3f91f7ed40707ac6dad554518c44ae5f86908","unresolved":false,"context_lines":[{"line_number":117,"context_line":"            routers \u003d self.plugin_rpc.get_routers(context)"},{"line_number":118,"context_line":"            if target_routers:"},{"line_number":119,"context_line":"                routers \u003d [router for router in routers"},{"line_number":120,"context_line":"                           if router[\u0027id\u0027] in target_routers]"},{"line_number":121,"context_line":"            router_info_list \u003d self._get_router_info_list_for_tenant("},{"line_number":122,"context_line":"                routers,"},{"line_number":123,"context_line":"                fw[\u0027tenant_id\u0027])"}],"source_content_type":"text/x-python","patch_set":39,"id":"AAAAVn%2F%2Fr9M%3D","line":120,"in_reply_to":"AAAAVn%2F%2FyJQ%3D","updated":"2014-03-04 17:27:50.000000000","message":"Done","commit_id":"4c2455ba1a80e1ccbc6e504fc7bd53e05461bd0a"}],"neutron/services/firewall/fwaas_plugin.py":[{"author":{"_account_id":7576,"name":"Gary Duan","email":"garyduan@gmail.com","username":"garyduan"},"change_message_id":"08f6b846967bd06c14b94e0838f1f95c799b0f35","unresolved":false,"context_lines":[{"line_number":232,"context_line":"            self._make_firewall_dict_with_rules(context, fw[\u0027id\u0027]))"},{"line_number":233,"context_line":"        sctxt_id \u003d fw.get(\u0027service_context_id\u0027)"},{"line_number":234,"context_line":"        if sctxt_id:"},{"line_number":235,"context_line":"            service_context \u003d self.get_service_context(context, sctxt_id)"},{"line_number":236,"context_line":"            fw_with_rules.update(service_context)"},{"line_number":237,"context_line":"        self.agent_rpc.create_firewall(context, fw_with_rules)"},{"line_number":238,"context_line":"        return fw"}],"source_content_type":"text/x-python","patch_set":27,"id":"AAAAU3%2F%2FaiQ%3D","line":235,"updated":"2014-02-26 19:18:58.000000000","message":"Does it mean we can only specify service context when the firewall is created? What if the firewall is created before the router?","commit_id":"d115e3f3d657bee8cb4e8da5b1d5d5c143807638"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"2ea7a5f895cdec949493e30072022ee892645a0f","unresolved":false,"context_lines":[{"line_number":232,"context_line":"            self._make_firewall_dict_with_rules(context, fw[\u0027id\u0027]))"},{"line_number":233,"context_line":"        sctxt_id \u003d fw.get(\u0027service_context_id\u0027)"},{"line_number":234,"context_line":"        if sctxt_id:"},{"line_number":235,"context_line":"            service_context \u003d self.get_service_context(context, sctxt_id)"},{"line_number":236,"context_line":"            fw_with_rules.update(service_context)"},{"line_number":237,"context_line":"        self.agent_rpc.create_firewall(context, fw_with_rules)"},{"line_number":238,"context_line":"        return fw"}],"source_content_type":"text/x-python","patch_set":27,"id":"AAAAVX%2F%2F%2BA0%3D","line":235,"in_reply_to":"AAAAU3%2F%2FaiQ%3D","updated":"2014-02-27 04:01:31.000000000","message":"service-context is part of firewall resource. So, service-context can be created with firewall.\n\nSince service-context takes router-id, router must be created before you refer to it in the service-context.\n\nThe actual router creation (on L3 agent) could be delayed.","commit_id":"d115e3f3d657bee8cb4e8da5b1d5d5c143807638"},{"author":{"_account_id":7576,"name":"Gary Duan","email":"garyduan@gmail.com","username":"garyduan"},"change_message_id":"3b1dfc0abc0a65e78b0f3791342e8677bd4874c3","unresolved":false,"context_lines":[{"line_number":233,"context_line":"        sctxt_id \u003d fw.get(\u0027service_context_id\u0027)"},{"line_number":234,"context_line":"        if sctxt_id:"},{"line_number":235,"context_line":"            service_context \u003d self.get_service_context(context, sctxt_id)"},{"line_number":236,"context_line":"            fw_with_rules.update(service_context)"},{"line_number":237,"context_line":"        self.agent_rpc.create_firewall(context, fw_with_rules)"},{"line_number":238,"context_line":"        return fw"},{"line_number":239,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"AAAAVX%2F%2F8wo%3D","line":236,"updated":"2014-02-27 07:23:39.000000000","message":"Consider a case that when the firewall is created, there is only one router in the tenant, so the firewall can be applied to the router.\n\nAfter that if more routers are created, if the tenant user wants to apply the same rules, there are two options for him/her,\n1. Create a new firewall with the same firewall policy and apply to the new router;\n2. Delete the current firewall and recreate new firewall with the same policy and the new router list in service context.\n\nI think neither option is ideal. The user should be able to modify the service context for the firewall.","commit_id":"dc6ff95f42ae9c4bf93bf182bd532d8f7d101061"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"113323d478c3735f4e70b75d3cdc9d2b1da44792","unresolved":false,"context_lines":[{"line_number":232,"context_line":"        fw \u003d super(FirewallPlugin, self).create_firewall(context, firewall)"},{"line_number":233,"context_line":"        fw_with_rules \u003d ("},{"line_number":234,"context_line":"            self._make_firewall_dict_with_rules(context, fw[\u0027id\u0027]))"},{"line_number":235,"context_line":"        sctxt_id \u003d fw.get(\u0027service_context_id\u0027)"},{"line_number":236,"context_line":"        if sctxt_id:"},{"line_number":237,"context_line":"            service_context \u003d self.get_service_context(context, sctxt_id)"},{"line_number":238,"context_line":"            fw_with_rules.update(service_context)"}],"source_content_type":"text/x-python","patch_set":39,"id":"AAAAVn%2F%2FyI0%3D","line":235,"updated":"2014-03-04 05:31:48.000000000","message":"nit: I prefer servicecontext_","commit_id":"4c2455ba1a80e1ccbc6e504fc7bd53e05461bd0a"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"47c3f91f7ed40707ac6dad554518c44ae5f86908","unresolved":false,"context_lines":[{"line_number":232,"context_line":"        fw \u003d super(FirewallPlugin, self).create_firewall(context, firewall)"},{"line_number":233,"context_line":"        fw_with_rules \u003d ("},{"line_number":234,"context_line":"            self._make_firewall_dict_with_rules(context, fw[\u0027id\u0027]))"},{"line_number":235,"context_line":"        sctxt_id \u003d fw.get(\u0027service_context_id\u0027)"},{"line_number":236,"context_line":"        if sctxt_id:"},{"line_number":237,"context_line":"            service_context \u003d self.get_service_context(context, sctxt_id)"},{"line_number":238,"context_line":"            fw_with_rules.update(service_context)"}],"source_content_type":"text/x-python","patch_set":39,"id":"AAAAVn%2F%2Fr8Q%3D","line":235,"in_reply_to":"AAAAVn%2F%2FyI0%3D","updated":"2014-03-04 17:27:50.000000000","message":"Done","commit_id":"4c2455ba1a80e1ccbc6e504fc7bd53e05461bd0a"}],"neutron/services/firewall/plugin_drivers/l3reference/firewall_l3_driver.py":[{"author":{"_account_id":7576,"name":"Gary Duan","email":"garyduan@gmail.com","username":"garyduan"},"change_message_id":"9137463cbd6074a2cbb0762a991663c47b435575","unresolved":false,"context_lines":[{"line_number":138,"context_line":"                service_context[\u0027subnets\u0027] or"},{"line_number":139,"context_line":"                service_context[\u0027ports\u0027]):"},{"line_number":140,"context_line":"                raise svc_ctxt_db.ServiceContextNotSupported(id\u003dsctxt_id)"},{"line_number":141,"context_line":"            fw_with_rules.update(service_context)"},{"line_number":142,"context_line":"        self.agent_rpc.create_firewall(context, fw_with_rules)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def delete_firewall(self, context, fw):"}],"source_content_type":"text/x-python","patch_set":21,"id":"AAAAUX%2F%2BsDw%3D","line":141,"updated":"2014-02-19 19:34:19.000000000","message":"Should we lift one-firewall-per-tenant restriction with this patch?","commit_id":"625bdd6ad6cd300a8f434d3fdbb7b537501f99bf"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"62cf93f6cea419dae5e51f07bcdf0452c9588869","unresolved":false,"context_lines":[{"line_number":138,"context_line":"                service_context[\u0027subnets\u0027] or"},{"line_number":139,"context_line":"                service_context[\u0027ports\u0027]):"},{"line_number":140,"context_line":"                raise svc_ctxt_db.ServiceContextNotSupported(id\u003dsctxt_id)"},{"line_number":141,"context_line":"            fw_with_rules.update(service_context)"},{"line_number":142,"context_line":"        self.agent_rpc.create_firewall(context, fw_with_rules)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def delete_firewall(self, context, fw):"}],"source_content_type":"text/x-python","patch_set":21,"id":"AAAAUX%2F%2BrXE%3D","line":141,"in_reply_to":"AAAAUX%2F%2BsDw%3D","updated":"2014-02-19 20:48:32.000000000","message":"Yes, we should. I am looking for a clean way to do this (we have to prevent two service-contexts referring to same router).","commit_id":"625bdd6ad6cd300a8f434d3fdbb7b537501f99bf"}],"neutron/tests/unit/db/firewall/test_db_firewall.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"class TestFwaasCorePlugin(test_l3_plugin.TestL3NatIntPlugin,"},{"line_number":61,"context_line":"                          l3_agentschedulers_db.L3AgentSchedulerDbMixin,"},{"line_number":62,"context_line":"                          agentschedulers_db.DhcpAgentSchedulerDbMixin):"},{"line_number":63,"context_line":"    def __init__(self, configfile\u003dNone):"},{"line_number":64,"context_line":"        super(TestFwaasCorePlugin, self).__init__()"},{"line_number":65,"context_line":"        self.router_scheduler \u003d l3_agent_scheduler.ChanceScheduler()"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2Fof8%3D","line":62,"updated":"2014-03-02 10:39:24.000000000","message":"Why do we need to inherit dhcp-agent-scheudler mixin?","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"45be192da25549388a7c5dfb649a6443b7033bcb","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"class TestFwaasCorePlugin(test_l3_plugin.TestL3NatIntPlugin,"},{"line_number":61,"context_line":"                          l3_agentschedulers_db.L3AgentSchedulerDbMixin,"},{"line_number":62,"context_line":"                          agentschedulers_db.DhcpAgentSchedulerDbMixin):"},{"line_number":63,"context_line":"    def __init__(self, configfile\u003dNone):"},{"line_number":64,"context_line":"        super(TestFwaasCorePlugin, self).__init__()"},{"line_number":65,"context_line":"        self.router_scheduler \u003d l3_agent_scheduler.ChanceScheduler()"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVn%2F%2F8KU%3D","line":62,"in_reply_to":"AAAAVX%2F%2Fof8%3D","updated":"2014-03-03 09:39:34.000000000","message":"Done. Removed it.","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"67a0cae1f99c53b953887e08d59aa1f0c28c82b4","unresolved":false,"context_lines":[{"line_number":792,"context_line":"            svc_ctxt \u003d {\"networks\": [],"},{"line_number":793,"context_line":"                        \"ports\": [],"},{"line_number":794,"context_line":"                        \"routers\": router_list,"},{"line_number":795,"context_line":"                        \"subnets\": []}"},{"line_number":796,"context_line":"            self._test_create_firewall_with_svc_ctxt(svc_ctxt)"},{"line_number":797,"context_line":""},{"line_number":798,"context_line":"    def test_create_firewall_with_network_ctxt(self):"}],"source_content_type":"text/x-python","patch_set":32,"id":"AAAAVX%2F%2Fofg%3D","line":795,"updated":"2014-03-02 10:39:24.000000000","message":"Question: do we need to pass a whole dictionary to create a firewall with service context? Can\u0027t we create a firewall with a required field: svc_ctxt \u003d {\u0027routers\u0027: router_list} ?","commit_id":"80a5ffb9f3f2f41ac0fdbec30875efb603d9b031"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"3d1d56b25f5b4cc47c44a9cd6d589741f87df4da","unresolved":false,"context_lines":[{"line_number":247,"context_line":"                             \u0027admin_state_up\u0027: admin_state_up,"},{"line_number":248,"context_line":"                             \u0027tenant_id\u0027: self._tenant_id}}"},{"line_number":249,"context_line":"        if (\u0027service_context\u0027 in kwargs and"},{"line_number":250,"context_line":"            kwargs[\u0027service_context\u0027] is not None):"},{"line_number":251,"context_line":"            data[\u0027firewall\u0027][\u0027service_context\u0027] \u003d kwargs[\u0027service_context\u0027]"},{"line_number":252,"context_line":"        firewall_req \u003d self.new_create_request(\u0027firewalls\u0027, data, fmt)"},{"line_number":253,"context_line":"        firewall_res \u003d firewall_req.get_response(self.ext_api)"}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAVn%2F%2FZoQ%3D","line":250,"updated":"2014-03-06 10:37:46.000000000","message":"It can be:\n\n  if kwargs.get(\u0027service_context\u0027)\u0027","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"5cd7c3523bd8e0346ee9a2a68ed7d554c4797cbd","unresolved":false,"context_lines":[{"line_number":247,"context_line":"                             \u0027admin_state_up\u0027: admin_state_up,"},{"line_number":248,"context_line":"                             \u0027tenant_id\u0027: self._tenant_id}}"},{"line_number":249,"context_line":"        if (\u0027service_context\u0027 in kwargs and"},{"line_number":250,"context_line":"            kwargs[\u0027service_context\u0027] is not None):"},{"line_number":251,"context_line":"            data[\u0027firewall\u0027][\u0027service_context\u0027] \u003d kwargs[\u0027service_context\u0027]"},{"line_number":252,"context_line":"        firewall_req \u003d self.new_create_request(\u0027firewalls\u0027, data, fmt)"},{"line_number":253,"context_line":"        firewall_res \u003d firewall_req.get_response(self.ext_api)"}],"source_content_type":"text/x-python","patch_set":60,"id":"AAAAWH%2F9ySE%3D","line":250,"in_reply_to":"AAAAVn%2F%2FZoQ%3D","updated":"2014-04-02 08:02:21.000000000","message":"Done","commit_id":"e3c6e1e86271ee9e6f5d968a1912befb8fc9bef6"}],"neutron/tests/unit/test_attributes.py":[{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"113323d478c3735f4e70b75d3cdc9d2b1da44792","unresolved":false,"context_lines":[{"line_number":664,"context_line":"        allowed_insertions \u003d [\"routers\", \"networks\", \"ports\", \"subnets\"]"},{"line_number":665,"context_line":""},{"line_number":666,"context_line":"        # check valid service contexts"},{"line_number":667,"context_line":"        svc_ctxt1 \u003d {\"routers\": [\u0027e5069610-744b-42a7-8bd8-ceac1a229cd4\u0027,"},{"line_number":668,"context_line":"                                 \u002712345678123456781234567812345678\u0027]}"},{"line_number":669,"context_line":"        svc_ctxt2 \u003d {\"networks\": [\u0027e5069610-744b-42a7-8bd8-ceac1a229cd4\u0027],"},{"line_number":670,"context_line":"                     \"subnets\": [\u0027e5069610-744b-42a7-8bd8-ceac1a229cd4\u0027],"}],"source_content_type":"text/x-python","patch_set":39,"id":"AAAAVn%2F%2FyIg%3D","line":667,"updated":"2014-03-04 05:31:48.000000000","message":"nit: s/svc/service/","commit_id":"4c2455ba1a80e1ccbc6e504fc7bd53e05461bd0a"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"47c3f91f7ed40707ac6dad554518c44ae5f86908","unresolved":false,"context_lines":[{"line_number":664,"context_line":"        allowed_insertions \u003d [\"routers\", \"networks\", \"ports\", \"subnets\"]"},{"line_number":665,"context_line":""},{"line_number":666,"context_line":"        # check valid service contexts"},{"line_number":667,"context_line":"        svc_ctxt1 \u003d {\"routers\": [\u0027e5069610-744b-42a7-8bd8-ceac1a229cd4\u0027,"},{"line_number":668,"context_line":"                                 \u002712345678123456781234567812345678\u0027]}"},{"line_number":669,"context_line":"        svc_ctxt2 \u003d {\"networks\": [\u0027e5069610-744b-42a7-8bd8-ceac1a229cd4\u0027],"},{"line_number":670,"context_line":"                     \"subnets\": [\u0027e5069610-744b-42a7-8bd8-ceac1a229cd4\u0027],"}],"source_content_type":"text/x-python","patch_set":39,"id":"AAAAVn%2F%2Fr4k%3D","line":667,"in_reply_to":"AAAAVn%2F%2FyIg%3D","updated":"2014-03-04 17:27:50.000000000","message":"Done","commit_id":"4c2455ba1a80e1ccbc6e504fc7bd53e05461bd0a"}],"neutron/tests/unit/test_extension_firewall.py":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"109ad5d01bfff8caad2b824cffa4b91390caae46","unresolved":false,"context_lines":[{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    def test_create_firewall_with_subnet_svc_ctxt(self):"},{"line_number":92,"context_line":"        svc_ctxt \u003d {\"subnets\": [\"subnet1\", \"subnet2\"]}"},{"line_number":93,"context_line":"        self._test_create_firewall(svc_ctxt)"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def test_firewall_list(self):"},{"line_number":96,"context_line":"        fw_id \u003d _uuid()"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F2vQ%3D","line":93,"updated":"2014-03-03 19:38:54.000000000","message":"It seems multiple contextes (eg: router and network) are valid, and should be covered by a unit test","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"},{"author":{"_account_id":7752,"name":"Rajesh Mohan","email":"rajesh.mlists@gmail.com","username":"rajesh.mohan"},"change_message_id":"87551afd5997232e85cfe80b685fe5bc86dd6e8e","unresolved":false,"context_lines":[{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    def test_create_firewall_with_subnet_svc_ctxt(self):"},{"line_number":92,"context_line":"        svc_ctxt \u003d {\"subnets\": [\"subnet1\", \"subnet2\"]}"},{"line_number":93,"context_line":"        self._test_create_firewall(svc_ctxt)"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def test_firewall_list(self):"},{"line_number":96,"context_line":"        fw_id \u003d _uuid()"}],"source_content_type":"text/x-python","patch_set":38,"id":"AAAAVn%2F%2F16g%3D","line":93,"in_reply_to":"AAAAVn%2F%2F2vQ%3D","updated":"2014-03-03 20:48:24.000000000","message":"yes - will do.","commit_id":"3c9f9d43d2ba24b827114d8613dc8d2eca202abd"}]}
