)]}'
{"dragonflow/db/models.py":[{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"0e956276e1f938f8dbfedb9c9608b06cc07dc0a4","unresolved":false,"context_lines":[{"line_number":200,"context_line":"    def get_remote_vtep(self):"},{"line_number":201,"context_line":"        return self.inner_obj.get(\u0027remote_vtep\u0027, False)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    def get_network_id(self):"},{"line_number":204,"context_line":"        return self.get_external_value(\u0027local_network_id\u0027)"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"    def get_network_type(self):"},{"line_number":207,"context_line":"        return self.get_external_value(\u0027network_type\u0027)"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    def get_physical_network(self):"},{"line_number":210,"context_line":"        return self.get_external_value(\u0027physical_network\u0027)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def get_segmentation_id (self):"},{"line_number":213,"context_line":"        return self.get_external_value(\u0027segmentation_id\u0027)"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    def get_ofport(self):"},{"line_number":216,"context_line":"        return self.get_external_value(\u0027ofport\u0027)"},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    def __str__(self):"},{"line_number":219,"context_line":"        lport_with_exteral_dict \u003d dict(self.inner_obj)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_3bb832c8","line":216,"range":{"start_line":203,"start_character":0,"end_line":216,"end_character":48},"updated":"2016-12-15 00:51:13.000000000","message":"I prefer the original way to manage external_dict, because it tells me these attributes are not in nb db explicitly.\n\nThe methods you added here, mix up the getter of attributes that stores in nb db and the getter of attributes that are pushed in external_dict by local controller.","commit_id":"034217fb111029fa76229c83be72fafdc81e7195"},{"author":{"_account_id":23766,"name":"Dima Kuznetsov","email":"dima.kuznetsov@toganetworks.com","username":"dimak"},"change_message_id":"469fdeb8284e0770361dbd573e93a1fbb189289c","unresolved":false,"context_lines":[{"line_number":200,"context_line":"    def get_remote_vtep(self):"},{"line_number":201,"context_line":"        return self.inner_obj.get(\u0027remote_vtep\u0027, False)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    def get_network_id(self):"},{"line_number":204,"context_line":"        return self.get_external_value(\u0027local_network_id\u0027)"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"    def get_network_type(self):"},{"line_number":207,"context_line":"        return self.get_external_value(\u0027network_type\u0027)"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    def get_physical_network(self):"},{"line_number":210,"context_line":"        return self.get_external_value(\u0027physical_network\u0027)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def get_segmentation_id (self):"},{"line_number":213,"context_line":"        return self.get_external_value(\u0027segmentation_id\u0027)"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    def get_ofport(self):"},{"line_number":216,"context_line":"        return self.get_external_value(\u0027ofport\u0027)"},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    def __str__(self):"},{"line_number":219,"context_line":"        lport_with_exteral_dict \u003d dict(self.inner_obj)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_77339114","line":216,"range":{"start_line":203,"start_character":0,"end_line":216,"end_character":48},"in_reply_to":"1a6eadb0_3bb832c8","updated":"2016-12-15 09:26:01.000000000","message":"Maybe we can move them into model.extra or model.local namespace to make it more obvious.","commit_id":"034217fb111029fa76229c83be72fafdc81e7195"},{"author":{"_account_id":18347,"name":"Itamar Ofek","email":"itamofek@netscape.net","username":"itamaro"},"change_message_id":"0232f7c88041680f2fac534ecd0a9f36a1fe8657","unresolved":false,"context_lines":[{"line_number":200,"context_line":"    def get_remote_vtep(self):"},{"line_number":201,"context_line":"        return self.inner_obj.get(\u0027remote_vtep\u0027, False)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    def get_network_id(self):"},{"line_number":204,"context_line":"        return self.get_external_value(\u0027local_network_id\u0027)"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"    def get_network_type(self):"},{"line_number":207,"context_line":"        return self.get_external_value(\u0027network_type\u0027)"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    def get_physical_network(self):"},{"line_number":210,"context_line":"        return self.get_external_value(\u0027physical_network\u0027)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def get_segmentation_id (self):"},{"line_number":213,"context_line":"        return self.get_external_value(\u0027segmentation_id\u0027)"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    def get_ofport(self):"},{"line_number":216,"context_line":"        return self.get_external_value(\u0027ofport\u0027)"},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    def __str__(self):"},{"line_number":219,"context_line":"        lport_with_exteral_dict \u003d dict(self.inner_obj)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_941c306c","line":216,"range":{"start_line":203,"start_character":0,"end_line":216,"end_character":48},"in_reply_to":"1a6eadb0_3c40b035","updated":"2016-12-19 07:29:29.000000000","message":"I think it is irrelevant if the data is from external dictionary. Having an accessor function aim is to simplify the access to this data.\nI will have a look at model.extra or model.local, to see if it fits there better :)","commit_id":"034217fb111029fa76229c83be72fafdc81e7195"},{"author":{"_account_id":20287,"name":"hujie","email":"mike.hu@huawei.com","username":"hujie"},"change_message_id":"0ac9ca689722520b85785d549a37ebd30d0f07fd","unresolved":false,"context_lines":[{"line_number":200,"context_line":"    def get_remote_vtep(self):"},{"line_number":201,"context_line":"        return self.inner_obj.get(\u0027remote_vtep\u0027, False)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    def get_network_id(self):"},{"line_number":204,"context_line":"        return self.get_external_value(\u0027local_network_id\u0027)"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"    def get_network_type(self):"},{"line_number":207,"context_line":"        return self.get_external_value(\u0027network_type\u0027)"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    def get_physical_network(self):"},{"line_number":210,"context_line":"        return self.get_external_value(\u0027physical_network\u0027)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def get_segmentation_id (self):"},{"line_number":213,"context_line":"        return self.get_external_value(\u0027segmentation_id\u0027)"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    def get_ofport(self):"},{"line_number":216,"context_line":"        return self.get_external_value(\u0027ofport\u0027)"},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    def __str__(self):"},{"line_number":219,"context_line":"        lport_with_exteral_dict \u003d dict(self.inner_obj)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_79dfa4d5","line":216,"range":{"start_line":203,"start_character":0,"end_line":216,"end_character":48},"in_reply_to":"1a6eadb0_77339114","updated":"2016-12-17 15:21:37.000000000","message":"I think the principle is if the attribute is shared by each df, it\u0027s worth to add getter method into the LogicalXXX resource class, if the attribute is produced by local, it\u0027s no need to define specific getter methods to make the class more large:)","commit_id":"034217fb111029fa76229c83be72fafdc81e7195"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"7f030fcd500dee7433e8391d9ef9d0ea8d6dc764","unresolved":false,"context_lines":[{"line_number":200,"context_line":"    def get_remote_vtep(self):"},{"line_number":201,"context_line":"        return self.inner_obj.get(\u0027remote_vtep\u0027, False)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    def get_network_id(self):"},{"line_number":204,"context_line":"        return self.get_external_value(\u0027local_network_id\u0027)"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"    def get_network_type(self):"},{"line_number":207,"context_line":"        return self.get_external_value(\u0027network_type\u0027)"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    def get_physical_network(self):"},{"line_number":210,"context_line":"        return self.get_external_value(\u0027physical_network\u0027)"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    def get_segmentation_id (self):"},{"line_number":213,"context_line":"        return self.get_external_value(\u0027segmentation_id\u0027)"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"    def get_ofport(self):"},{"line_number":216,"context_line":"        return self.get_external_value(\u0027ofport\u0027)"},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    def __str__(self):"},{"line_number":219,"context_line":"        lport_with_exteral_dict \u003d dict(self.inner_obj)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a6eadb0_3c40b035","line":216,"range":{"start_line":203,"start_character":0,"end_line":216,"end_character":48},"in_reply_to":"1a6eadb0_79dfa4d5","updated":"2016-12-18 12:47:26.000000000","message":"I think I prefer @dimak\u0027s and @itamaro\u0027s way. Constants should be hidden away, but indeed maybe an \u0027extras\u0027 attribute?","commit_id":"034217fb111029fa76229c83be72fafdc81e7195"}]}
