)]}'
{"samples/legacy-templates/README.warning":[{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"6cc34f19493cd424d89809e2860b15981f7f8036","unresolved":false,"context_lines":[{"line_number":1,"context_line":"Legacy Template Deprecate Warning"},{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"From Mitaka version, Tacker supports TOSCA based VNFD templates. Legacy"},{"line_number":5,"context_line":"templates described under tacker/sample/legacy-templates are deprecated. Use"},{"line_number":6,"context_line":"TOSCA based templates described at tacker/sample/tosca-templates/vnfd"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"dada55a8_a851ee10","line":4,"updated":"2016-07-18 04:29:00.000000000","message":"I believe we no need to mention about when this feature is started to support in tacker. instead, we could say that, legacy template format is deprecated and only TOSCA format is supported.","commit_id":"023e492c8c2242dd93005f05f1f985b5093301ed"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"87170327a049441daa000de2e8908dc3299ee312","unresolved":false,"context_lines":[{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"Tacker supports TOSCA based VNFD templates. Legacy templates described"},{"line_number":5,"context_line":"under tacker/sample/legacy-templates are deprecated. Use TOSCA based"},{"line_number":6,"context_line":"templates described at tacker/sample/tosca-templates/vnfd"}],"source_content_type":"application/octet-stream","patch_set":6,"id":"dada55a8_cb2ff3f4","line":5,"range":{"start_line":5,"start_character":19,"end_line":5,"end_character":20},"updated":"2016-07-18 10:02:18.000000000","message":"sample -\u003e samples","commit_id":"b73697b3c7fe1d502ab6f6b8b700a080043cdc93"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"87170327a049441daa000de2e8908dc3299ee312","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"Tacker supports TOSCA based VNFD templates. Legacy templates described"},{"line_number":5,"context_line":"under tacker/sample/legacy-templates are deprecated. Use TOSCA based"},{"line_number":6,"context_line":"templates described at tacker/sample/tosca-templates/vnfd"}],"source_content_type":"application/octet-stream","patch_set":6,"id":"dada55a8_0b88ebe6","line":6,"range":{"start_line":6,"start_character":53,"end_line":6,"end_character":57},"updated":"2016-07-18 10:02:18.000000000","message":"remove vnfd since we are expecting NSD ,etc.","commit_id":"b73697b3c7fe1d502ab6f6b8b700a080043cdc93"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"87170327a049441daa000de2e8908dc3299ee312","unresolved":false,"context_lines":[{"line_number":3,"context_line":""},{"line_number":4,"context_line":"Tacker supports TOSCA based VNFD templates. Legacy templates described"},{"line_number":5,"context_line":"under tacker/sample/legacy-templates are deprecated. Use TOSCA based"},{"line_number":6,"context_line":"templates described at tacker/sample/tosca-templates/vnfd"}],"source_content_type":"application/octet-stream","patch_set":6,"id":"dada55a8_8b469bbd","line":6,"range":{"start_line":6,"start_character":30,"end_line":6,"end_character":36},"updated":"2016-07-18 10:02:18.000000000","message":"sample -\u003e samples","commit_id":"b73697b3c7fe1d502ab6f6b8b700a080043cdc93"}],"tacker/vm/plugin.py":[{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"1120c7a9b0b66b0dfa05ce48d453be5a231a1e04","unresolved":false,"context_lines":[{"line_number":129,"context_line":"    def create_device_template(self, context, device_template):"},{"line_number":130,"context_line":"        template \u003d device_template[\u0027device_template\u0027]"},{"line_number":131,"context_line":"        if \"tosca_definitions_version\" not in template[\u0027attributes\u0027][\u0027vnfd\u0027]:"},{"line_number":132,"context_line":"            LOG.warning(_(\u0027VNFD legacy templates are deprecated.\u0027))"},{"line_number":133,"context_line":"        LOG.debug(_(\u0027template %s\u0027), template)"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        infra_driver \u003d template.get(\u0027infra_driver\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_5ae8f27c","line":132,"range":{"start_line":132,"start_character":27,"end_line":132,"end_character":64},"updated":"2016-07-04 04:44:25.000000000","message":"It can be like: \"Legacy templates are deprecated. Please use NFV TOSCA format.\"","commit_id":"f0c9e6236f175c50cf855522b7c0a5f874dc1b86"},{"author":{"_account_id":13485,"name":"Sripriya Seetharam","email":"sseetha@brocade.com","username":"Sripriya"},"change_message_id":"33cd8bf071b417d2ab2be40c7feb7c609f4c4d1a","unresolved":false,"context_lines":[{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def create_device_template(self, context, device_template):"},{"line_number":130,"context_line":"        template \u003d device_template[\u0027device_template\u0027]"},{"line_number":131,"context_line":"        if \"tosca_definitions_version\" not in template[\u0027attributes\u0027][\u0027vnfd\u0027]:"},{"line_number":132,"context_line":"            LOG.warning(_(\u0027VNFD legacy templates are deprecated. Please use\u0027"},{"line_number":133,"context_line":"                          \u0027 NFV TOSCA templates.\u0027))"},{"line_number":134,"context_line":"        LOG.debug(_(\u0027template %s\u0027), template)"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1aa78d24_8411f706","line":132,"range":{"start_line":131,"start_character":8,"end_line":132,"end_character":76},"updated":"2016-07-11 20:20:34.000000000","message":"Please use [1] for logging deprecated features [1] since this has a bigger impact for using VNFD templates. Also mention the release cycle for deprecating it.\n\n[1] http://docs.openstack.org/developer/oslo.log/api/versionutils.html#oslo_log.versionutils.report_deprecated_feature","commit_id":"f7f051bbc0c59ba4fa2ea64adaf5c258b9eaeda1"},{"author":{"_account_id":10487,"name":"Kanagaraj Manickam","email":"mkr1481@gmail.com","username":"kanagarajm"},"change_message_id":"c98e855c6344628197d7758944acce1f9741cf02","unresolved":false,"context_lines":[{"line_number":129,"context_line":"    def create_device_template(self, context, device_template):"},{"line_number":130,"context_line":"        template \u003d device_template[\u0027device_template\u0027]"},{"line_number":131,"context_line":"        if \"tosca_definitions_version\" not in template[\u0027attributes\u0027][\u0027vnfd\u0027]:"},{"line_number":132,"context_line":"            LOG.warning(_(\u0027VNFD legacy templates are deprecated. Please use\u0027"},{"line_number":133,"context_line":"                          \u0027 NFV TOSCA templates.\u0027))"},{"line_number":134,"context_line":"        LOG.debug(_(\u0027template %s\u0027), template)"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1aa78d24_c2784ff5","line":132,"updated":"2016-07-05 03:56:52.000000000","message":"what is the use of putting the warning here. instead, please add this in the REST API documentations.","commit_id":"f7f051bbc0c59ba4fa2ea64adaf5c258b9eaeda1"},{"author":{"_account_id":13380,"name":"Sridhar Ramaswamy","email":"srics.r@gmail.com","username":"srics-r"},"change_message_id":"91268484233134ad6f687ea2c856a85004367ffd","unresolved":false,"context_lines":[{"line_number":129,"context_line":"    def create_device_template(self, context, device_template):"},{"line_number":130,"context_line":"        template \u003d device_template[\u0027device_template\u0027]"},{"line_number":131,"context_line":"        if \"tosca_definitions_version\" not in template[\u0027attributes\u0027][\u0027vnfd\u0027]:"},{"line_number":132,"context_line":"            LOG.warning(_(\u0027VNFD legacy templates are deprecated. Please use\u0027"},{"line_number":133,"context_line":"                          \u0027 NFV TOSCA templates.\u0027))"},{"line_number":134,"context_line":"        LOG.debug(_(\u0027template %s\u0027), template)"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1aa78d24_788d1fd2","line":132,"in_reply_to":"1aa78d24_65f525ca","updated":"2016-07-07 17:37:17.000000000","message":"Agree, we need to log this deprecation warning here.\n\nI don\u0027t think we have any documentation referring to legacy template to mention this warning.\n\nKanagaraj - related question, is there way to send deprecation warnings in REST api responses ?","commit_id":"f7f051bbc0c59ba4fa2ea64adaf5c258b9eaeda1"},{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"b3bf5742a96de1860334cfc66dce21f0a94179ae","unresolved":false,"context_lines":[{"line_number":129,"context_line":"    def create_device_template(self, context, device_template):"},{"line_number":130,"context_line":"        template \u003d device_template[\u0027device_template\u0027]"},{"line_number":131,"context_line":"        if \"tosca_definitions_version\" not in template[\u0027attributes\u0027][\u0027vnfd\u0027]:"},{"line_number":132,"context_line":"            LOG.warning(_(\u0027VNFD legacy templates are deprecated. Please use\u0027"},{"line_number":133,"context_line":"                          \u0027 NFV TOSCA templates.\u0027))"},{"line_number":134,"context_line":"        LOG.debug(_(\u0027template %s\u0027), template)"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1aa78d24_74a6b954","line":132,"in_reply_to":"1aa78d24_788d1fd2","updated":"2016-07-08 01:17:16.000000000","message":"Yes, a warning can be sent by adding a Warning header in api as in [1].\nAlthough I think, just logging this deprecation warning here should be sufficient, instead of sending in response.\n\n[1]: https://tools.ietf.org/html/rfc7234#section-5.5","commit_id":"f7f051bbc0c59ba4fa2ea64adaf5c258b9eaeda1"},{"author":{"_account_id":18955,"name":"dharmendra","email":"dharmendra.kushwaha@gmail.com","username":"dharmendra"},"change_message_id":"c6a98706d97ab0507911da9d5fa84f41cd80d2da","unresolved":false,"context_lines":[{"line_number":129,"context_line":"    def create_device_template(self, context, device_template):"},{"line_number":130,"context_line":"        template \u003d device_template[\u0027device_template\u0027]"},{"line_number":131,"context_line":"        if \"tosca_definitions_version\" not in template[\u0027attributes\u0027][\u0027vnfd\u0027]:"},{"line_number":132,"context_line":"            LOG.warning(_(\u0027VNFD legacy templates are deprecated. Please use\u0027"},{"line_number":133,"context_line":"                          \u0027 NFV TOSCA templates.\u0027))"},{"line_number":134,"context_line":"        LOG.debug(_(\u0027template %s\u0027), template)"},{"line_number":135,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1aa78d24_65f525ca","line":132,"in_reply_to":"1aa78d24_c2784ff5","updated":"2016-07-05 04:27:29.000000000","message":"Nice catch.\n\nAlthough IMO, Deprecation warning should also be logged here too.","commit_id":"f7f051bbc0c59ba4fa2ea64adaf5c258b9eaeda1"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"87170327a049441daa000de2e8908dc3299ee312","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        if \"tosca_definitions_version\" not in template[\u0027attributes\u0027][\u0027vnfd\u0027]:"},{"line_number":133,"context_line":"            versionutils.report_deprecated_feature(LOG, \u0027VNFD legacy templates\u0027"},{"line_number":134,"context_line":"                \u0027 are deprecated since Mitaka release. Please use NFV TOSCA\u0027"},{"line_number":135,"context_line":"                \u0027 templates.\u0027)"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        LOG.debug(_(\u0027template %s\u0027), template)"},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_ebc63715","line":135,"range":{"start_line":135,"start_character":27,"end_line":135,"end_character":30},"updated":"2016-07-18 10:02:18.000000000","message":"I think we also need to indicate when we will remove the support.","commit_id":"b73697b3c7fe1d502ab6f6b8b700a080043cdc93"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"9f629bdbe84205481737422ae15f370dffa6597c","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        if \"tosca_definitions_version\" not in template[\u0027attributes\u0027][\u0027vnfd\u0027]:"},{"line_number":133,"context_line":"            versionutils.report_deprecated_feature(LOG, \u0027VNFD legacy templates\u0027"},{"line_number":134,"context_line":"                \u0027 are deprecated since Mitaka release and will be removed in\u0027"},{"line_number":135,"context_line":"                \u0027 Newton release. Please use NFV TOSCA templates.\u0027)"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        LOG.debug(_(\u0027template %s\u0027), template)"},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"dada55a8_64451f6f","line":135,"range":{"start_line":135,"start_character":18,"end_line":135,"end_character":24},"updated":"2016-07-19 09:34:16.000000000","message":"it seems we are already in Newton release.","commit_id":"a2714938793365a5786907a2540072e2c3b1a033"},{"author":{"_account_id":20866,"name":"Janki Chhatbar","email":"jchhatba@redhat.com","username":"janki"},"change_message_id":"37a87e9f605efa75be06fdd5cae3ae51eb710aef","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        if \"tosca_definitions_version\" not in template[\u0027attributes\u0027][\u0027vnfd\u0027]:"},{"line_number":133,"context_line":"            versionutils.report_deprecated_feature(LOG, \u0027VNFD legacy templates\u0027"},{"line_number":134,"context_line":"                \u0027 are deprecated since Mitaka release and will be removed in\u0027"},{"line_number":135,"context_line":"                \u0027 Newton release. Please use NFV TOSCA templates.\u0027)"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        LOG.debug(_(\u0027template %s\u0027), template)"},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"dada55a8_450d743d","line":135,"range":{"start_line":135,"start_character":18,"end_line":135,"end_character":24},"in_reply_to":"dada55a8_64451f6f","updated":"2016-07-19 10:51:50.000000000","message":"Done","commit_id":"a2714938793365a5786907a2540072e2c3b1a033"}]}
