)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"dc54079fafafbea135207c72af5bde9f7b762a6a","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"VNF scaling: REST API"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"implments blueprint: #vnf-scaling"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ib8cdd1295460e617806eec173e4d4ed8f35e6642"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"dada55a8_2b07861d","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":33},"updated":"2016-07-19 01:12:39.000000000","message":"Correct syntax is,\n\nImplements: blueprint vnf-scaling\n\n[1] http://docs.openstack.org/infra/manual/developers.html","commit_id":"27cdceefb295b3873a68ae0dd298bd68e7451c4b"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"ec714f2822ea375961044bcd82b7b250548c2a35","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"VNF scaling: REST API"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"implments blueprint: #vnf-scaling"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: Ib8cdd1295460e617806eec173e4d4ed8f35e6642"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"dada55a8_57225c02","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":33},"in_reply_to":"dada55a8_2b07861d","updated":"2016-07-19 04:08:13.000000000","message":"sure. thanks","commit_id":"27cdceefb295b3873a68ae0dd298bd68e7451c4b"}],"tacker/common/exceptions.py":[{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"e361f180e9f91e9b0a684af11f535065f15708cc","unresolved":false,"context_lines":[{"line_number":245,"context_line":"    message \u003d _(\"VNF configuration failed\")"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"class VnfPolicyNotFound(NotFound):"},{"line_number":249,"context_line":"    message \u003d _(\"Policy %(policy)s does not exist for VNF %(vnf_id)s\")"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"class VnfPolicyActionInvalid(BadRequest):"},{"line_number":253,"context_line":"    message \u003d _(\"Invalid action %(action)s for policy %(policy)s, \""},{"line_number":254,"context_line":"                \"should be one of %(valid_acions)s\")"},{"line_number":255,"context_line":""},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"class VnfPolicyTypeInvalid(BadRequest):"},{"line_number":258,"context_line":"    message \u003d _(\"Invalid type %(type)s for policy %(policy)s, \""},{"line_number":259,"context_line":"                \"should be one of %(valid_types)s\")"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_fa5bc383","line":259,"range":{"start_line":248,"start_character":0,"end_line":259,"end_character":51},"updated":"2016-07-23 02:17:10.000000000","message":"not sure if these vnf specific exceptions needs to be put in common exceptions file","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"845bd64bc1452092efb914f25e845c41ace1ec97","unresolved":false,"context_lines":[{"line_number":245,"context_line":"    message \u003d _(\"VNF configuration failed\")"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":""},{"line_number":248,"context_line":"class VnfPolicyNotFound(NotFound):"},{"line_number":249,"context_line":"    message \u003d _(\"Policy %(policy)s does not exist for VNF %(vnf_id)s\")"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"class VnfPolicyActionInvalid(BadRequest):"},{"line_number":253,"context_line":"    message \u003d _(\"Invalid action %(action)s for policy %(policy)s, \""},{"line_number":254,"context_line":"                \"should be one of %(valid_acions)s\")"},{"line_number":255,"context_line":""},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"class VnfPolicyTypeInvalid(BadRequest):"},{"line_number":258,"context_line":"    message \u003d _(\"Invalid type %(type)s for policy %(policy)s, \""},{"line_number":259,"context_line":"                \"should be one of %(valid_types)s\")"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_eb88cec8","line":259,"range":{"start_line":248,"start_character":0,"end_line":259,"end_character":51},"in_reply_to":"dada55a8_fa5bc383","updated":"2016-07-25 04:33:15.000000000","message":"this will appear to user and kept it here.","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"}],"tacker/db/vm/vm_db.py":[{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"ec21b7d88f3caa2aeedf48e19d51aee6fcd72b96","unresolved":false,"context_lines":[{"line_number":402,"context_line":"        device_db.update({\u0027status\u0027: new_status})"},{"line_number":403,"context_line":"        return device_db"},{"line_number":404,"context_line":""},{"line_number":405,"context_line":"    def _update_device_policy_status(self,"},{"line_number":406,"context_line":"                                     context,"},{"line_number":407,"context_line":"                                     policy,"},{"line_number":408,"context_line":"                                     previous_statuses,"}],"source_content_type":"text/x-python","patch_set":22,"id":"1aa78d24_e0daa316","line":405,"range":{"start_line":405,"start_character":8,"end_line":405,"end_character":22},"updated":"2016-07-15 00:26:17.000000000","message":"can we ditch the usage of \"_device_\" to refer to \"_vnf_\", instead I\u0027d suggest going fwd we use the correct nomenclature,\n\n_update_vnf_policy_status()","commit_id":"b2c90cf05eb878622d9c9d6d65380405c8f4da31"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"a9655997c1e9ceaf78b321ab593b5d03657010fc","unresolved":false,"context_lines":[{"line_number":402,"context_line":"        device_db.update({\u0027status\u0027: new_status})"},{"line_number":403,"context_line":"        return device_db"},{"line_number":404,"context_line":""},{"line_number":405,"context_line":"    def _update_device_policy_status(self,"},{"line_number":406,"context_line":"                                     context,"},{"line_number":407,"context_line":"                                     policy,"},{"line_number":408,"context_line":"                                     previous_statuses,"}],"source_content_type":"text/x-python","patch_set":22,"id":"1aa78d24_f1c8b323","line":405,"range":{"start_line":405,"start_character":8,"end_line":405,"end_character":22},"in_reply_to":"1aa78d24_e0daa316","updated":"2016-07-15 02:22:04.000000000","message":"sure. thanks","commit_id":"b2c90cf05eb878622d9c9d6d65380405c8f4da31"}],"tacker/extensions/vnfm.py":[{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"ec21b7d88f3caa2aeedf48e19d51aee6fcd72b96","unresolved":false,"context_lines":[{"line_number":460,"context_line":"        pass"},{"line_number":461,"context_line":""},{"line_number":462,"context_line":"    @abc.abstractmethod"},{"line_number":463,"context_line":"    def create_vnf_scale("},{"line_number":464,"context_line":"            self, context, vnf_id, scale):"},{"line_number":465,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":22,"id":"1aa78d24_a0c9bb5c","line":463,"range":{"start_line":463,"start_character":8,"end_line":463,"end_character":24},"updated":"2016-07-15 00:26:17.000000000","message":"I understand the CRUD nature of these abstract methods, but still scale_vnf() would be more appropriate name","commit_id":"b2c90cf05eb878622d9c9d6d65380405c8f4da31"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"a9655997c1e9ceaf78b321ab593b5d03657010fc","unresolved":false,"context_lines":[{"line_number":460,"context_line":"        pass"},{"line_number":461,"context_line":""},{"line_number":462,"context_line":"    @abc.abstractmethod"},{"line_number":463,"context_line":"    def create_vnf_scale("},{"line_number":464,"context_line":"            self, context, vnf_id, scale):"},{"line_number":465,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":22,"id":"1aa78d24_b1df4bd5","line":463,"range":{"start_line":463,"start_character":8,"end_line":463,"end_character":24},"in_reply_to":"1aa78d24_a0c9bb5c","updated":"2016-07-15 02:22:04.000000000","message":"no, this is given by convention mandated by framework, if we change the name it does not work","commit_id":"b2c90cf05eb878622d9c9d6d65380405c8f4da31"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"cf7f226e14e8f432d785c6f9710e48a68a4fa4e7","unresolved":false,"context_lines":[{"line_number":460,"context_line":"        pass"},{"line_number":461,"context_line":""},{"line_number":462,"context_line":"    @abc.abstractmethod"},{"line_number":463,"context_line":"    def create_vnf_scale("},{"line_number":464,"context_line":"            self, context, vnf_id, scale):"},{"line_number":465,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":22,"id":"dada55a8_eb4bae29","line":463,"range":{"start_line":463,"start_character":8,"end_line":463,"end_character":24},"in_reply_to":"1aa78d24_b1df4bd5","updated":"2016-07-19 01:12:30.000000000","message":"Understood. Agree, no choice but to leave it as is.","commit_id":"b2c90cf05eb878622d9c9d6d65380405c8f4da31"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"e361f180e9f91e9b0a684af11f535065f15708cc","unresolved":false,"context_lines":[{"line_number":320,"context_line":"                        \u0027allow_post\u0027: True,"},{"line_number":321,"context_line":"                        \u0027allow_put\u0027: False,"},{"line_number":322,"context_line":"                        \u0027is_visible\u0027: True,"},{"line_number":323,"context_line":"                        \u0027primary_key\u0027: False,"},{"line_number":324,"context_line":"                        \u0027validate\u0027: {\u0027type:string\u0027: None}"},{"line_number":325,"context_line":"                    },"},{"line_number":326,"context_line":"                    \u0027type\u0027: {"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_855ce819","line":323,"range":{"start_line":323,"start_character":25,"end_line":323,"end_character":45},"updated":"2016-07-23 02:17:10.000000000","message":"redundant","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"e361f180e9f91e9b0a684af11f535065f15708cc","unresolved":false,"context_lines":[{"line_number":327,"context_line":"                        \u0027allow_post\u0027: True,"},{"line_number":328,"context_line":"                        \u0027allow_put\u0027: False,"},{"line_number":329,"context_line":"                        \u0027is_visible\u0027: True,"},{"line_number":330,"context_line":"                        \u0027primary_key\u0027: False,"},{"line_number":331,"context_line":"                        \u0027validate\u0027: {\u0027type:string\u0027: None}"},{"line_number":332,"context_line":"                    },"},{"line_number":333,"context_line":"                    \u0027tenant_id\u0027: {"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_c5a0a0f6","line":330,"range":{"start_line":330,"start_character":24,"end_line":330,"end_character":45},"updated":"2016-07-23 02:17:10.000000000","message":"redundant","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"845bd64bc1452092efb914f25e845c41ace1ec97","unresolved":false,"context_lines":[{"line_number":327,"context_line":"                        \u0027allow_post\u0027: True,"},{"line_number":328,"context_line":"                        \u0027allow_put\u0027: False,"},{"line_number":329,"context_line":"                        \u0027is_visible\u0027: True,"},{"line_number":330,"context_line":"                        \u0027primary_key\u0027: False,"},{"line_number":331,"context_line":"                        \u0027validate\u0027: {\u0027type:string\u0027: None}"},{"line_number":332,"context_line":"                    },"},{"line_number":333,"context_line":"                    \u0027tenant_id\u0027: {"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_b0e0f997","line":330,"range":{"start_line":330,"start_character":24,"end_line":330,"end_character":45},"in_reply_to":"dada55a8_c5a0a0f6","updated":"2016-07-25 04:33:15.000000000","message":"will remove it thanks","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"e361f180e9f91e9b0a684af11f535065f15708cc","unresolved":false,"context_lines":[{"line_number":334,"context_line":"                        \u0027allow_post\u0027: True,"},{"line_number":335,"context_line":"                        \u0027allow_put\u0027: False,"},{"line_number":336,"context_line":"                        \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":337,"context_line":"                        \u0027required_by_policy\u0027: False,"},{"line_number":338,"context_line":"                        \u0027is_visible\u0027: False"},{"line_number":339,"context_line":"                    },"},{"line_number":340,"context_line":"                }"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_25fd3c6e","line":337,"range":{"start_line":337,"start_character":24,"end_line":337,"end_character":52},"updated":"2016-07-23 02:17:10.000000000","message":"if this is set, policy_attrs is populated with the key value else ignored, so need to specify explicitly as False","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"845bd64bc1452092efb914f25e845c41ace1ec97","unresolved":false,"context_lines":[{"line_number":334,"context_line":"                        \u0027allow_post\u0027: True,"},{"line_number":335,"context_line":"                        \u0027allow_put\u0027: False,"},{"line_number":336,"context_line":"                        \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":337,"context_line":"                        \u0027required_by_policy\u0027: False,"},{"line_number":338,"context_line":"                        \u0027is_visible\u0027: False"},{"line_number":339,"context_line":"                    },"},{"line_number":340,"context_line":"                }"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_7007a11d","line":337,"range":{"start_line":337,"start_character":24,"end_line":337,"end_character":52},"in_reply_to":"dada55a8_25fd3c6e","updated":"2016-07-25 04:33:15.000000000","message":"you mean, it should be set to True?","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f595fe3641d0e84c8f11bdc278e11e14a4ac2fd8","unresolved":false,"context_lines":[{"line_number":320,"context_line":"                        \u0027allow_post\u0027: True,"},{"line_number":321,"context_line":"                        \u0027allow_put\u0027: False,"},{"line_number":322,"context_line":"                        \u0027is_visible\u0027: True,"},{"line_number":323,"context_line":"                        \u0027validate\u0027: {\u0027type:string\u0027: None}"},{"line_number":324,"context_line":"                    },"},{"line_number":325,"context_line":"                    \u0027type\u0027: {"},{"line_number":326,"context_line":"                        \u0027allow_post\u0027: True,"}],"source_content_type":"text/x-python","patch_set":30,"id":"bacf61ea_c1b9447b","line":323,"range":{"start_line":323,"start_character":38,"end_line":323,"end_character":42},"updated":"2016-08-04 03:08:33.000000000","message":"is it policy id or name?","commit_id":"ace3f15c567d5cdbd5e426da8be6a6877991a8a4"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f595fe3641d0e84c8f11bdc278e11e14a4ac2fd8","unresolved":false,"context_lines":[{"line_number":326,"context_line":"                        \u0027allow_post\u0027: True,"},{"line_number":327,"context_line":"                        \u0027allow_put\u0027: False,"},{"line_number":328,"context_line":"                        \u0027is_visible\u0027: True,"},{"line_number":329,"context_line":"                        \u0027validate\u0027: {\u0027type:string\u0027: None}"},{"line_number":330,"context_line":"                    },"},{"line_number":331,"context_line":"                    \u0027tenant_id\u0027: {"},{"line_number":332,"context_line":"                        \u0027allow_post\u0027: True,"}],"source_content_type":"text/x-python","patch_set":30,"id":"bacf61ea_61ab381e","line":329,"range":{"start_line":329,"start_character":43,"end_line":329,"end_character":49},"updated":"2016-08-04 03:08:33.000000000","message":"we can validate the type here","commit_id":"ace3f15c567d5cdbd5e426da8be6a6877991a8a4"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f595fe3641d0e84c8f11bdc278e11e14a4ac2fd8","unresolved":false,"context_lines":[{"line_number":333,"context_line":"                        \u0027allow_put\u0027: False,"},{"line_number":334,"context_line":"                        \u0027validate\u0027: {\u0027type:string\u0027: None},"},{"line_number":335,"context_line":"                        \u0027required_by_policy\u0027: False,"},{"line_number":336,"context_line":"                        \u0027is_visible\u0027: False"},{"line_number":337,"context_line":"                    },"},{"line_number":338,"context_line":"                }"},{"line_number":339,"context_line":"            }"}],"source_content_type":"text/x-python","patch_set":30,"id":"bacf61ea_e16d6805","line":336,"range":{"start_line":336,"start_character":38,"end_line":336,"end_character":43},"updated":"2016-08-04 03:08:33.000000000","message":"why it is False, I think sometimes admin should know it.","commit_id":"ace3f15c567d5cdbd5e426da8be6a6877991a8a4"}],"tacker/plugins/common/constants.py":[{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"c2be5358ec6231febf5235da2c2c59e3f8ca96ca","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    PENDING_UPDATE"},{"line_number":47,"context_line":")"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"POLICY_SCALING \u003d \u0027tosca.policy.tacker.Scaling\u0027"},{"line_number":50,"context_line":"POLICY_SCALING_ACTIONS \u003d (ACTION_SCALE_OUT,"},{"line_number":51,"context_line":"                          ACTION_SCALE_IN) \u003d (\u0027out\u0027, \u0027in\u0027)"},{"line_number":52,"context_line":"POLICY_ACTIONS \u003d {POLICY_SCALING: POLICY_SCALING_ACTIONS}"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_5c93affa","line":49,"range":{"start_line":49,"start_character":0,"end_line":49,"end_character":46},"updated":"2016-07-23 02:18:18.000000000","message":"this is tosca specific constants, better to put it in [1] than here as we evolve it to support more tosca based policies \n  https://github.com/openstack/tacker/blob/master/tacker/vm/tosca/utils.py","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"845bd64bc1452092efb914f25e845c41ace1ec97","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    PENDING_UPDATE"},{"line_number":47,"context_line":")"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"POLICY_SCALING \u003d \u0027tosca.policy.tacker.Scaling\u0027"},{"line_number":50,"context_line":"POLICY_SCALING_ACTIONS \u003d (ACTION_SCALE_OUT,"},{"line_number":51,"context_line":"                          ACTION_SCALE_IN) \u003d (\u0027out\u0027, \u0027in\u0027)"},{"line_number":52,"context_line":"POLICY_ACTIONS \u003d {POLICY_SCALING: POLICY_SCALING_ACTIONS}"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_d0e5ada8","line":49,"range":{"start_line":49,"start_character":0,"end_line":49,"end_character":46},"in_reply_to":"dada55a8_5c93affa","updated":"2016-07-25 04:33:15.000000000","message":"I think that if we need to move this one, we should move all from L49 to L52. let me know if you think differently. thanks.","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"}],"tacker/vm/plugin.py":[{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"ec21b7d88f3caa2aeedf48e19d51aee6fcd72b96","unresolved":false,"context_lines":[{"line_number":406,"context_line":""},{"line_number":407,"context_line":"        self.spawn_n(self._delete_device_wait, context, device_dict, vim_auth)"},{"line_number":408,"context_line":""},{"line_number":409,"context_line":"    def update_device_policy(self, context, policy):"},{"line_number":410,"context_line":"        # validate"},{"line_number":411,"context_line":"        def _validate_policy_actions():"},{"line_number":412,"context_line":"            type \u003d policy[\u0027type\u0027]"}],"source_content_type":"text/x-python","patch_set":22,"id":"1aa78d24_80f2bf99","line":409,"range":{"start_line":409,"start_character":8,"end_line":409,"end_character":28},"updated":"2016-07-15 00:26:17.000000000","message":"can we ditch the usage of \"_device_\" to refer to \"_vnf_\", instead I\u0027d suggest going fwd we use the correct nomenclature,\n\nupdate_vnf_policy()","commit_id":"b2c90cf05eb878622d9c9d6d65380405c8f4da31"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"dc54079fafafbea135207c72af5bde9f7b762a6a","unresolved":false,"context_lines":[{"line_number":566,"context_line":"        policy_list \u003d []"},{"line_number":567,"context_line":""},{"line_number":568,"context_line":"        if vnfd_tmpl.get(\u0027tosca_definitions_version\u0027):"},{"line_number":569,"context_line":"            polices \u003d vnfd_tmpl[\u0027topology_template\u0027].get(\u0027policies\u0027, [])"},{"line_number":570,"context_line":"            for policy_dict in polices:"},{"line_number":571,"context_line":"                for name, policy in policy_dict.items():"},{"line_number":572,"context_line":"                    def _add(policy):"}],"source_content_type":"text/x-python","patch_set":23,"id":"dada55a8_26c5fd3b","line":569,"range":{"start_line":569,"start_character":12,"end_line":569,"end_character":72},"updated":"2016-07-19 01:12:39.000000000","message":"nit: typo ? should be \u0027policies\u0027 ?\n\nAlso, we should not have a separate \"policies:\" YAML attribute. I should\u0027ve caught this in the spec [1], in the examplen part. This usage is not a valid TOSCA syntax. Each node_type should be independent within a topology_template. So instead of using \"policies\", you should use \u0027tosca.policies.tacker.Scaling\u0027 to get the list of policies. Perhaps we can create a util function to do this retrieval\n\n[1] http://specs.openstack.org/openstack/tacker-specs/specs/newton/manual-and-auto-scaling.html","commit_id":"27cdceefb295b3873a68ae0dd298bd68e7451c4b"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"ec714f2822ea375961044bcd82b7b250548c2a35","unresolved":false,"context_lines":[{"line_number":566,"context_line":"        policy_list \u003d []"},{"line_number":567,"context_line":""},{"line_number":568,"context_line":"        if vnfd_tmpl.get(\u0027tosca_definitions_version\u0027):"},{"line_number":569,"context_line":"            polices \u003d vnfd_tmpl[\u0027topology_template\u0027].get(\u0027policies\u0027, [])"},{"line_number":570,"context_line":"            for policy_dict in polices:"},{"line_number":571,"context_line":"                for name, policy in policy_dict.items():"},{"line_number":572,"context_line":"                    def _add(policy):"}],"source_content_type":"text/x-python","patch_set":23,"id":"dada55a8_97e1749d","line":569,"range":{"start_line":569,"start_character":12,"end_line":569,"end_character":72},"in_reply_to":"dada55a8_26c5fd3b","updated":"2016-07-19 04:08:13.000000000","message":"I will fix the spelling. thanks\nRegarding the policies, I tried to follow the http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.0/csprd01/TOSCA-Simple-Profile-YAML-v1.0-csprd01.html#_Toc430015704\n\nAnd tosca parser also follows this approach. and unit testing added in the patch [1] shows that its valid format when policies are used under topology_template. Kindly let me know the why do you want to change it and it would be helpful if any TOSCA profile reference for this. thanks.\n\n[1] https://review.openstack.org/329528","commit_id":"27cdceefb295b3873a68ae0dd298bd68e7451c4b"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"2079c0b8f297a0fce51e8383120e432c1004b213","unresolved":false,"context_lines":[{"line_number":566,"context_line":"        policy_list \u003d []"},{"line_number":567,"context_line":""},{"line_number":568,"context_line":"        if vnfd_tmpl.get(\u0027tosca_definitions_version\u0027):"},{"line_number":569,"context_line":"            polices \u003d vnfd_tmpl[\u0027topology_template\u0027].get(\u0027policies\u0027, [])"},{"line_number":570,"context_line":"            for policy_dict in polices:"},{"line_number":571,"context_line":"                for name, policy in policy_dict.items():"},{"line_number":572,"context_line":"                    def _add(policy):"}],"source_content_type":"text/x-python","patch_set":23,"id":"dada55a8_1a2a927e","line":569,"range":{"start_line":569,"start_character":12,"end_line":569,"end_character":72},"in_reply_to":"dada55a8_97e1749d","updated":"2016-07-19 23:52:36.000000000","message":"Thanks for the clarification, I stand corrected. Now, the outline for TOSCA is bit more clearer now, it goes something like this...\n\ntopology_template:\n    inputs:\n    node_templates:\n        node1:\n        node2:\n    groups:\n        group1:\n        group2:\n    policies:\n        policies1:\n        policies2:","commit_id":"27cdceefb295b3873a68ae0dd298bd68e7451c4b"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"e361f180e9f91e9b0a684af11f535065f15708cc","unresolved":false,"context_lines":[{"line_number":414,"context_line":""},{"line_number":415,"context_line":"    def _handle_vnf_scaling(self, context, policy):"},{"line_number":416,"context_line":"        # validate"},{"line_number":417,"context_line":"        def _validate_scaling_policy():"},{"line_number":418,"context_line":"            type \u003d policy[\u0027type\u0027]"},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"            if type not in constants.POLICY_ACTIONS.keys():"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_7cbe73d5","line":417,"range":{"start_line":417,"start_character":12,"end_line":417,"end_character":36},"updated":"2016-07-23 02:17:10.000000000","message":"better to handle this validation even before fetching the policy information as this information is available in the requets body. also, this method logic is generic enough to validate any policy type and policy action, can we name this method to _validate_vnf_policy() ?","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"845bd64bc1452092efb914f25e845c41ace1ec97","unresolved":false,"context_lines":[{"line_number":414,"context_line":""},{"line_number":415,"context_line":"    def _handle_vnf_scaling(self, context, policy):"},{"line_number":416,"context_line":"        # validate"},{"line_number":417,"context_line":"        def _validate_scaling_policy():"},{"line_number":418,"context_line":"            type \u003d policy[\u0027type\u0027]"},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"            if type not in constants.POLICY_ACTIONS.keys():"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_cbacea37","line":417,"range":{"start_line":417,"start_character":12,"end_line":417,"end_character":36},"in_reply_to":"dada55a8_7cbe73d5","updated":"2016-07-25 04:33:15.000000000","message":"Policy fetching helps to check whether given policy exist and here very specific to the scaling is handled is given policy is of type Scaling and actions are validated as well.","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"e361f180e9f91e9b0a684af11f535065f15708cc","unresolved":false,"context_lines":[{"line_number":560,"context_line":"        p[\u0027type\u0027] \u003d policy[\u0027type\u0027]"},{"line_number":561,"context_line":"        p[\u0027properties\u0027] \u003d policy[\u0027properties\u0027]"},{"line_number":562,"context_line":"        p[\u0027vnf_id\u0027] \u003d vnf_id"},{"line_number":563,"context_line":"        p[\u0027name\u0027] \u003d name"},{"line_number":564,"context_line":"        p[\u0027id\u0027] \u003d p[\u0027name\u0027]"},{"line_number":565,"context_line":"        return p"},{"line_number":566,"context_line":""},{"line_number":567,"context_line":"    def get_vnf_policies("}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_7999651f","line":564,"range":{"start_line":563,"start_character":8,"end_line":564,"end_character":27},"updated":"2016-07-23 02:17:10.000000000","message":"both \u0027id\u0027 and \u0027name\u0027 have same assignments. why do we need both?","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"845bd64bc1452092efb914f25e845c41ace1ec97","unresolved":false,"context_lines":[{"line_number":560,"context_line":"        p[\u0027type\u0027] \u003d policy[\u0027type\u0027]"},{"line_number":561,"context_line":"        p[\u0027properties\u0027] \u003d policy[\u0027properties\u0027]"},{"line_number":562,"context_line":"        p[\u0027vnf_id\u0027] \u003d vnf_id"},{"line_number":563,"context_line":"        p[\u0027name\u0027] \u003d name"},{"line_number":564,"context_line":"        p[\u0027id\u0027] \u003d p[\u0027name\u0027]"},{"line_number":565,"context_line":"        return p"},{"line_number":566,"context_line":""},{"line_number":567,"context_line":"    def get_vnf_policies("}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_eb5d6e49","line":564,"range":{"start_line":563,"start_character":8,"end_line":564,"end_character":27},"in_reply_to":"dada55a8_7999651f","updated":"2016-07-25 04:33:15.000000000","message":"that\u0027s right, just making sure, the policy id is set with name for now and future it could be changed.","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"894af904e9a86caed207bb21f0ff9725a2dfce2b","unresolved":false,"context_lines":[{"line_number":564,"context_line":"        p[\u0027id\u0027] \u003d p[\u0027name\u0027]"},{"line_number":565,"context_line":"        return p"},{"line_number":566,"context_line":""},{"line_number":567,"context_line":"    def get_vnf_policies("},{"line_number":568,"context_line":"            self, context, vnf_id, filters\u003dNone, fields\u003dNone):"},{"line_number":569,"context_line":"        vnf \u003d self.get_device(context, vnf_id)"},{"line_number":570,"context_line":"        scaling_group_names \u003d vnf[\u0027attributes\u0027][\u0027scaling_group_names\u0027]"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_bb7b2c7a","line":567,"range":{"start_line":567,"start_character":8,"end_line":567,"end_character":24},"updated":"2016-07-21 13:58:25.000000000","message":"Keep in mind, tacker will eventually support different types of policies - like placement_policy, governance policy, etc.  \n\nSo now, is this method supposed to extend (in the future) to get policies that are not scaling related ? If not, I\u0027d suggest we name this get_vnf_scaling_policies(). A related comment below in L586.","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"d6b3096ca50017d9947548c898a5a788d8599339","unresolved":false,"context_lines":[{"line_number":564,"context_line":"        p[\u0027id\u0027] \u003d p[\u0027name\u0027]"},{"line_number":565,"context_line":"        return p"},{"line_number":566,"context_line":""},{"line_number":567,"context_line":"    def get_vnf_policies("},{"line_number":568,"context_line":"            self, context, vnf_id, filters\u003dNone, fields\u003dNone):"},{"line_number":569,"context_line":"        vnf \u003d self.get_device(context, vnf_id)"},{"line_number":570,"context_line":"        scaling_group_names \u003d vnf[\u0027attributes\u0027][\u0027scaling_group_names\u0027]"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_e3ff9763","line":567,"range":{"start_line":567,"start_character":8,"end_line":567,"end_character":24},"in_reply_to":"dada55a8_bb7b2c7a","updated":"2016-07-22 05:33:08.000000000","message":"I have kept the same strategy in mind, while designing this function. this should provide a list of policies and/or with given filter, and nothing to do with scaling policy specific.","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"894af904e9a86caed207bb21f0ff9725a2dfce2b","unresolved":false,"context_lines":[{"line_number":565,"context_line":"        return p"},{"line_number":566,"context_line":""},{"line_number":567,"context_line":"    def get_vnf_policies("},{"line_number":568,"context_line":"            self, context, vnf_id, filters\u003dNone, fields\u003dNone):"},{"line_number":569,"context_line":"        vnf \u003d self.get_device(context, vnf_id)"},{"line_number":570,"context_line":"        scaling_group_names \u003d vnf[\u0027attributes\u0027][\u0027scaling_group_names\u0027]"},{"line_number":571,"context_line":"        vnfd_tmpl \u003d yaml.load(vnf[\u0027device_template\u0027][\u0027attributes\u0027][\u0027vnfd\u0027])"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_1b46b84e","line":568,"range":{"start_line":568,"start_character":49,"end_line":568,"end_character":60},"updated":"2016-07-21 13:58:25.000000000","message":"Unused, can be removed ?","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"d6b3096ca50017d9947548c898a5a788d8599339","unresolved":false,"context_lines":[{"line_number":565,"context_line":"        return p"},{"line_number":566,"context_line":""},{"line_number":567,"context_line":"    def get_vnf_policies("},{"line_number":568,"context_line":"            self, context, vnf_id, filters\u003dNone, fields\u003dNone):"},{"line_number":569,"context_line":"        vnf \u003d self.get_device(context, vnf_id)"},{"line_number":570,"context_line":"        scaling_group_names \u003d vnf[\u0027attributes\u0027][\u0027scaling_group_names\u0027]"},{"line_number":571,"context_line":"        vnfd_tmpl \u003d yaml.load(vnf[\u0027device_template\u0027][\u0027attributes\u0027][\u0027vnfd\u0027])"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_43d4a3ea","line":568,"range":{"start_line":568,"start_character":49,"end_line":568,"end_character":60},"in_reply_to":"dada55a8_1b46b84e","updated":"2016-07-22 05:33:08.000000000","message":"this is required by the underlying framework when we want to support GET list of policies. so i feel we could leave as its, now.","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"894af904e9a86caed207bb21f0ff9725a2dfce2b","unresolved":false,"context_lines":[{"line_number":567,"context_line":"    def get_vnf_policies("},{"line_number":568,"context_line":"            self, context, vnf_id, filters\u003dNone, fields\u003dNone):"},{"line_number":569,"context_line":"        vnf \u003d self.get_device(context, vnf_id)"},{"line_number":570,"context_line":"        scaling_group_names \u003d vnf[\u0027attributes\u0027][\u0027scaling_group_names\u0027]"},{"line_number":571,"context_line":"        vnfd_tmpl \u003d yaml.load(vnf[\u0027device_template\u0027][\u0027attributes\u0027][\u0027vnfd\u0027])"},{"line_number":572,"context_line":"        policy_list \u003d []"},{"line_number":573,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_db2380bb","line":570,"range":{"start_line":570,"start_character":8,"end_line":570,"end_character":70},"updated":"2016-07-21 13:58:25.000000000","message":"This \u0027scaling_group_names\u0027 seems to something heat infra_driver related [1] and it shouldn\u0027t be referenced at this plugin level. Do you really need this attribute captured into policy dict here ? I\u0027d suggest you move this and have it stay within heat infra_driver layer.\n\n[1] https://review.openstack.org/#/c/330666/22/tacker/vm/infra_drivers/heat/heat.py","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"e361f180e9f91e9b0a684af11f535065f15708cc","unresolved":false,"context_lines":[{"line_number":567,"context_line":"    def get_vnf_policies("},{"line_number":568,"context_line":"            self, context, vnf_id, filters\u003dNone, fields\u003dNone):"},{"line_number":569,"context_line":"        vnf \u003d self.get_device(context, vnf_id)"},{"line_number":570,"context_line":"        scaling_group_names \u003d vnf[\u0027attributes\u0027][\u0027scaling_group_names\u0027]"},{"line_number":571,"context_line":"        vnfd_tmpl \u003d yaml.load(vnf[\u0027device_template\u0027][\u0027attributes\u0027][\u0027vnfd\u0027])"},{"line_number":572,"context_line":"        policy_list \u003d []"},{"line_number":573,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_3c74fbfb","line":570,"range":{"start_line":570,"start_character":35,"end_line":570,"end_character":68},"updated":"2016-07-23 02:17:10.000000000","message":"where is this getting populated?","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"d6b3096ca50017d9947548c898a5a788d8599339","unresolved":false,"context_lines":[{"line_number":567,"context_line":"    def get_vnf_policies("},{"line_number":568,"context_line":"            self, context, vnf_id, filters\u003dNone, fields\u003dNone):"},{"line_number":569,"context_line":"        vnf \u003d self.get_device(context, vnf_id)"},{"line_number":570,"context_line":"        scaling_group_names \u003d vnf[\u0027attributes\u0027][\u0027scaling_group_names\u0027]"},{"line_number":571,"context_line":"        vnfd_tmpl \u003d yaml.load(vnf[\u0027device_template\u0027][\u0027attributes\u0027][\u0027vnfd\u0027])"},{"line_number":572,"context_line":"        policy_list \u003d []"},{"line_number":573,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_83485bcd","line":570,"range":{"start_line":570,"start_character":8,"end_line":570,"end_character":70},"in_reply_to":"dada55a8_db2380bb","updated":"2016-07-22 05:33:08.000000000","message":"yes, it should go to heat. thanks for pointing out !","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"e361f180e9f91e9b0a684af11f535065f15708cc","unresolved":false,"context_lines":[{"line_number":574,"context_line":"        if vnfd_tmpl.get(\u0027tosca_definitions_version\u0027):"},{"line_number":575,"context_line":"            polices \u003d vnfd_tmpl[\u0027topology_template\u0027].get(\u0027policies\u0027, [])"},{"line_number":576,"context_line":"            for policy_dict in polices:"},{"line_number":577,"context_line":"                for name, policy in policy_dict.items():"},{"line_number":578,"context_line":"                    def _add(policy):"},{"line_number":579,"context_line":"                        p \u003d self._make_policy_dict(vnf_id, name, policy)"},{"line_number":580,"context_line":"                        p[\u0027name\u0027] \u003d name"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_dcfddf6f","line":577,"range":{"start_line":577,"start_character":16,"end_line":577,"end_character":56},"updated":"2016-07-23 02:17:10.000000000","message":"do we need the 2 nd for loop? \nplease correct my understanding\npolicies \u003d  ({SP1: {}}, {SP2: {}}, {SP3: {}})\nand policy_dict \u003d {SP1:{}} \nthis would always have only \u0027name\u0027 key. we can have the L587 check as policy_dict[\u0027name\u0027] \u003d\u003d filters.get(\u0027name\u0027)","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"845bd64bc1452092efb914f25e845c41ace1ec97","unresolved":false,"context_lines":[{"line_number":574,"context_line":"        if vnfd_tmpl.get(\u0027tosca_definitions_version\u0027):"},{"line_number":575,"context_line":"            polices \u003d vnfd_tmpl[\u0027topology_template\u0027].get(\u0027policies\u0027, [])"},{"line_number":576,"context_line":"            for policy_dict in polices:"},{"line_number":577,"context_line":"                for name, policy in policy_dict.items():"},{"line_number":578,"context_line":"                    def _add(policy):"},{"line_number":579,"context_line":"                        p \u003d self._make_policy_dict(vnf_id, name, policy)"},{"line_number":580,"context_line":"                        p[\u0027name\u0027] \u003d name"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_eb760ed7","line":577,"range":{"start_line":577,"start_character":16,"end_line":577,"end_character":56},"in_reply_to":"dada55a8_dcfddf6f","updated":"2016-07-25 04:33:15.000000000","message":"please look at the def of polices, and 2nd for loop is required.","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"894af904e9a86caed207bb21f0ff9725a2dfce2b","unresolved":false,"context_lines":[{"line_number":583,"context_line":"                        policy_list.append(p)"},{"line_number":584,"context_line":""},{"line_number":585,"context_line":"                    # Check for filters"},{"line_number":586,"context_line":"                    if filters.get(\u0027name\u0027):"},{"line_number":587,"context_line":"                        if name \u003d\u003d filters.get(\u0027name\u0027):"},{"line_number":588,"context_line":"                            _add(policy)"},{"line_number":589,"context_line":"                            break"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_7b2ff43e","line":586,"range":{"start_line":586,"start_character":0,"end_line":586,"end_character":43},"updated":"2016-07-21 13:58:25.000000000","message":"Beyond the \u0027name\u0027, should we also check this policy is actually of \u0027tosca.policy.tacker.Scaling\u0027 type. We better do this validation early, than using _validate_scaling_policy() in L417","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"d6b3096ca50017d9947548c898a5a788d8599339","unresolved":false,"context_lines":[{"line_number":583,"context_line":"                        policy_list.append(p)"},{"line_number":584,"context_line":""},{"line_number":585,"context_line":"                    # Check for filters"},{"line_number":586,"context_line":"                    if filters.get(\u0027name\u0027):"},{"line_number":587,"context_line":"                        if name \u003d\u003d filters.get(\u0027name\u0027):"},{"line_number":588,"context_line":"                            _add(policy)"},{"line_number":589,"context_line":"                            break"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_030bcb7d","line":586,"range":{"start_line":586,"start_character":0,"end_line":586,"end_character":43},"in_reply_to":"dada55a8_7b2ff43e","updated":"2016-07-22 05:33:08.000000000","message":"no, i wanted to make it as generic in nature as stated in earlier comment, so let it go. and validate_scaling_policy does specific to the scaling","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"e361f180e9f91e9b0a684af11f535065f15708cc","unresolved":false,"context_lines":[{"line_number":584,"context_line":""},{"line_number":585,"context_line":"                    # Check for filters"},{"line_number":586,"context_line":"                    if filters.get(\u0027name\u0027):"},{"line_number":587,"context_line":"                        if name \u003d\u003d filters.get(\u0027name\u0027):"},{"line_number":588,"context_line":"                            _add(policy)"},{"line_number":589,"context_line":"                            break"},{"line_number":590,"context_line":"                        else:"},{"line_number":591,"context_line":"                            continue"},{"line_number":592,"context_line":""},{"line_number":593,"context_line":"                    _add(policy)"},{"line_number":594,"context_line":""}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_dc0b1f7c","line":591,"range":{"start_line":587,"start_character":24,"end_line":591,"end_character":36},"updated":"2016-07-23 02:17:10.000000000","message":"where do we validate policy name/id input (specifically for vnf-scale)? this logic adds to the policy_dict if matched else ignores","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"894af904e9a86caed207bb21f0ff9725a2dfce2b","unresolved":false,"context_lines":[{"line_number":595,"context_line":"        return policy_list"},{"line_number":596,"context_line":""},{"line_number":597,"context_line":"    def get_vnf_policy("},{"line_number":598,"context_line":"            self, context, policy_id, vnf_id, fields\u003dNone):"},{"line_number":599,"context_line":"        policies \u003d self.get_vnf_policies(context,"},{"line_number":600,"context_line":"                                         vnf_id,"},{"line_number":601,"context_line":"                                         filters\u003d{\u0027name\u0027: policy_id})"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_18723e11","line":598,"range":{"start_line":598,"start_character":46,"end_line":598,"end_character":57},"updated":"2016-07-21 13:58:25.000000000","message":"Unused, can be removed ?","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"d6b3096ca50017d9947548c898a5a788d8599339","unresolved":false,"context_lines":[{"line_number":595,"context_line":"        return policy_list"},{"line_number":596,"context_line":""},{"line_number":597,"context_line":"    def get_vnf_policy("},{"line_number":598,"context_line":"            self, context, policy_id, vnf_id, fields\u003dNone):"},{"line_number":599,"context_line":"        policies \u003d self.get_vnf_policies(context,"},{"line_number":600,"context_line":"                                         vnf_id,"},{"line_number":601,"context_line":"                                         filters\u003d{\u0027name\u0027: policy_id})"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_e30dd78f","line":598,"range":{"start_line":598,"start_character":46,"end_line":598,"end_character":57},"in_reply_to":"dada55a8_18723e11","updated":"2016-07-22 05:33:08.000000000","message":"same here too.","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"e361f180e9f91e9b0a684af11f535065f15708cc","unresolved":false,"context_lines":[{"line_number":605,"context_line":"        raise exceptions.VnfPolicyNotFound(policy\u003dpolicy_id,"},{"line_number":606,"context_line":"                                           vnf_id\u003dvnf_id)"},{"line_number":607,"context_line":""},{"line_number":608,"context_line":"    def create_vnf_scale(self, context, vnf_id, scale):"},{"line_number":609,"context_line":"        policy_ \u003d self.get_vnf_policy(context,"},{"line_number":610,"context_line":"                                      scale[\u0027scale\u0027][\u0027policy\u0027],"},{"line_number":611,"context_line":"                                      vnf_id)"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_fc0f032c","line":608,"range":{"start_line":608,"start_character":40,"end_line":608,"end_character":46},"updated":"2016-07-23 02:17:10.000000000","message":"shouldnt the vnf_id be part of scale request body?","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"845bd64bc1452092efb914f25e845c41ace1ec97","unresolved":false,"context_lines":[{"line_number":605,"context_line":"        raise exceptions.VnfPolicyNotFound(policy\u003dpolicy_id,"},{"line_number":606,"context_line":"                                           vnf_id\u003dvnf_id)"},{"line_number":607,"context_line":""},{"line_number":608,"context_line":"    def create_vnf_scale(self, context, vnf_id, scale):"},{"line_number":609,"context_line":"        policy_ \u003d self.get_vnf_policy(context,"},{"line_number":610,"context_line":"                                      scale[\u0027scale\u0027][\u0027policy\u0027],"},{"line_number":611,"context_line":"                                      vnf_id)"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_cb734ae6","line":608,"range":{"start_line":608,"start_character":40,"end_line":608,"end_character":46},"in_reply_to":"dada55a8_fc0f032c","updated":"2016-07-25 04:33:15.000000000","message":"its part of the URI, so it will come here.","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"e361f180e9f91e9b0a684af11f535065f15708cc","unresolved":false,"context_lines":[{"line_number":610,"context_line":"                                      scale[\u0027scale\u0027][\u0027policy\u0027],"},{"line_number":611,"context_line":"                                      vnf_id)"},{"line_number":612,"context_line":"        policy_.update({\u0027action\u0027: scale[\u0027scale\u0027][\u0027type\u0027]})"},{"line_number":613,"context_line":"        self._handle_vnf_scaling(context, policy_)"},{"line_number":614,"context_line":""},{"line_number":615,"context_line":"        return scale[\u0027scale\u0027]"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_bca3cb4e","line":613,"range":{"start_line":613,"start_character":13,"end_line":613,"end_character":32},"updated":"2016-07-23 02:17:10.000000000","message":"this return the policy object but you are returning the scale object back to the API layer, i did not find the mapping of policy object and mgmt_url in scale response unless i\u0027m missing something here","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"845bd64bc1452092efb914f25e845c41ace1ec97","unresolved":false,"context_lines":[{"line_number":610,"context_line":"                                      scale[\u0027scale\u0027][\u0027policy\u0027],"},{"line_number":611,"context_line":"                                      vnf_id)"},{"line_number":612,"context_line":"        policy_.update({\u0027action\u0027: scale[\u0027scale\u0027][\u0027type\u0027]})"},{"line_number":613,"context_line":"        self._handle_vnf_scaling(context, policy_)"},{"line_number":614,"context_line":""},{"line_number":615,"context_line":"        return scale[\u0027scale\u0027]"}],"source_content_type":"text/x-python","patch_set":25,"id":"dada55a8_4b4e3a97","line":613,"range":{"start_line":613,"start_character":13,"end_line":613,"end_character":32},"in_reply_to":"dada55a8_bca3cb4e","updated":"2016-07-25 04:33:15.000000000","message":"what mgmt_url come here? as part of the POST operation, framework mandates to return the object being created, in this case the scale operation. so its returned like this.\n\nbut for user, its does not make much sense though.","commit_id":"b81fd233160eba1c8f2d7c4f6fb3496e6b530851"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"c39e737354710c86c360addf265d10a74cc108bf","unresolved":false,"context_lines":[{"line_number":419,"context_line":"    def _handle_vnf_scaling(self, context, policy):"},{"line_number":420,"context_line":"        # validate"},{"line_number":421,"context_line":"        def _validate_scaling_policy():"},{"line_number":422,"context_line":"            type \u003d policy[\u0027type\u0027]"},{"line_number":423,"context_line":""},{"line_number":424,"context_line":"            if type not in constants.POLICY_ACTIONS.keys():"},{"line_number":425,"context_line":"                raise exceptions.VnfPolicyTypeInvalid("}],"source_content_type":"text/x-python","patch_set":30,"id":"bacf61ea_c1382440","line":422,"range":{"start_line":422,"start_character":12,"end_line":422,"end_character":16},"updated":"2016-08-04 03:06:10.000000000","message":"use type_ to avoid built in type","commit_id":"ace3f15c567d5cdbd5e426da8be6a6877991a8a4"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"c39e737354710c86c360addf265d10a74cc108bf","unresolved":false,"context_lines":[{"line_number":580,"context_line":"                for name, policy in policy_dict.items():"},{"line_number":581,"context_line":"                    def _add(policy):"},{"line_number":582,"context_line":"                        p \u003d self._make_policy_dict(vnf, name, policy)"},{"line_number":583,"context_line":"                        p[\u0027name\u0027] \u003d name"},{"line_number":584,"context_line":"                        policy_list.append(p)"},{"line_number":585,"context_line":""},{"line_number":586,"context_line":"                    # Check for filters"}],"source_content_type":"text/x-python","patch_set":30,"id":"bacf61ea_c1eae4ab","line":583,"range":{"start_line":583,"start_character":33,"end_line":583,"end_character":34},"updated":"2016-08-04 03:06:10.000000000","message":"line 567 has put the name.","commit_id":"ace3f15c567d5cdbd5e426da8be6a6877991a8a4"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"c39e737354710c86c360addf265d10a74cc108bf","unresolved":false,"context_lines":[{"line_number":599,"context_line":"            self, context, policy_id, vnf_id, fields\u003dNone):"},{"line_number":600,"context_line":"        policies \u003d self.get_vnf_policies(context,"},{"line_number":601,"context_line":"                                         vnf_id,"},{"line_number":602,"context_line":"                                         filters\u003d{\u0027name\u0027: policy_id})"},{"line_number":603,"context_line":"        if policies:"},{"line_number":604,"context_line":"            return policies[0]"},{"line_number":605,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"bacf61ea_a18ff021","line":602,"range":{"start_line":602,"start_character":48,"end_line":602,"end_character":51},"updated":"2016-08-04 03:06:10.000000000","message":"policy_id should be policy_name","commit_id":"ace3f15c567d5cdbd5e426da8be6a6877991a8a4"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"c39e737354710c86c360addf265d10a74cc108bf","unresolved":false,"context_lines":[{"line_number":610,"context_line":"        policy_ \u003d self.get_vnf_policy(context,"},{"line_number":611,"context_line":"                                      scale[\u0027scale\u0027][\u0027policy\u0027],"},{"line_number":612,"context_line":"                                      vnf_id)"},{"line_number":613,"context_line":"        policy_.update({\u0027action\u0027: scale[\u0027scale\u0027][\u0027type\u0027]})"},{"line_number":614,"context_line":"        self._handle_vnf_scaling(context, policy_)"},{"line_number":615,"context_line":""},{"line_number":616,"context_line":"        return scale[\u0027scale\u0027]"}],"source_content_type":"text/x-python","patch_set":30,"id":"bacf61ea_e1aba887","line":613,"range":{"start_line":613,"start_character":54,"end_line":613,"end_character":58},"updated":"2016-08-04 03:06:10.000000000","message":"why not just put the action in scale[\u0027scale\u0027][\u0027policy\u0027]?","commit_id":"ace3f15c567d5cdbd5e426da8be6a6877991a8a4"}]}
