)]}'
{"networking_odl/common/constants.py":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"72b75ddf2a797426140babd0a4ec0267edf238d7","unresolved":false,"context_lines":[{"line_number":74,"context_line":"ODL_BGPVPNS \u003d \u0027bgpvpns\u0027"},{"line_number":75,"context_line":"ODL_BGPVPN_NETWORK_ASSOCIATION \u003d \u0027bgpvpn_network_association\u0027"},{"line_number":76,"context_line":"ODL_BGPVPN_NETWORK_ASSOCIATIONS \u003d \u0027bgpvpn_network_associations\u0027"},{"line_number":77,"context_line":"ODL_BGPVPN_ROUTER_ASSOCIATION \u003d \u0027bgpvpn_router_association\u0027"},{"line_number":78,"context_line":"ODL_BGPVPN_ROUTER_ASSOCIATIONS \u003d \u0027bgpvpn_router_associations\u0027"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"ODL_ML2_MECH_DRIVER_V1 \u003d \"opendaylight\""},{"line_number":81,"context_line":"ODL_ML2_MECH_DRIVER_V2 \u003d \"opendaylight_v2\""}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_dad9d222","line":78,"range":{"start_line":77,"start_character":0,"end_line":78,"end_character":61},"updated":"2017-08-22 16:52:39.000000000","message":"This is trivial fix.\nWe can merge only this part early.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"364243dec955f8e8927b03b7b6b0ff2a858bb1f1","unresolved":false,"context_lines":[{"line_number":74,"context_line":"ODL_BGPVPNS \u003d \u0027bgpvpns\u0027"},{"line_number":75,"context_line":"ODL_BGPVPN_NETWORK_ASSOCIATION \u003d \u0027bgpvpn_network_association\u0027"},{"line_number":76,"context_line":"ODL_BGPVPN_NETWORK_ASSOCIATIONS \u003d \u0027bgpvpn_network_associations\u0027"},{"line_number":77,"context_line":"ODL_BGPVPN_ROUTER_ASSOCIATION \u003d \u0027bgpvpn_router_association\u0027"},{"line_number":78,"context_line":"ODL_BGPVPN_ROUTER_ASSOCIATIONS \u003d \u0027bgpvpn_router_associations\u0027"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"ODL_ML2_MECH_DRIVER_V1 \u003d \"opendaylight\""},{"line_number":81,"context_line":"ODL_ML2_MECH_DRIVER_V2 \u003d \"opendaylight_v2\""}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_1277333d","line":78,"range":{"start_line":77,"start_character":0,"end_line":78,"end_character":61},"in_reply_to":"7f287b81_dad9d222","updated":"2017-08-23 06:34:14.000000000","message":"done https://review.openstack.org/#/c/496490/","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"}],"networking_odl/journal/full_sync.py":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"d64ae5d6fd57463e3b0b881881b44fc9c2f4203e","unresolved":false,"context_lines":[{"line_number":131,"context_line":"    pools \u003d plugin.get_pools(context)"},{"line_number":132,"context_line":"    resources \u003d []"},{"line_number":133,"context_line":"    for pool in pools:"},{"line_number":134,"context_line":"        obj_getter \u003d getattr(plugin, \u0027get_pool_members\u0027)"},{"line_number":135,"context_line":"        resources.append(obj_getter(context, pool[\u0027id\u0027]))"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    return resources"},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9f436f4f_c6f436d2","line":135,"range":{"start_line":134,"start_character":8,"end_line":135,"end_character":57},"updated":"2017-08-18 21:02:42.000000000","message":"getattr isn\u0027t needed.\nplugin.get_pool_members(pool[\u0027id\u0027])","commit_id":"9054eab266f53da0835c376b6dc1ceb24b864b3b"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"c6d89aa46d094db20a5bab4355d75af8d16b8616","unresolved":false,"context_lines":[{"line_number":138,"context_line":""},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"def get_resources(plugin, collection_name, context, obj_type):"},{"line_number":141,"context_line":"    if collection_name in [odl_const.ODL_BGPVPN_NETWORK_ASSOCIATIONS,"},{"line_number":142,"context_line":"                           odl_const.ODL_BGPVPN_ROUTER_ASSOCIATIONS]:"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        resources \u003d get_resources_bgpvpn(plugin, collection_name, context)"},{"line_number":145,"context_line":"    elif collection_name \u003d\u003d odl_const.ODL_MEMBERS:"},{"line_number":146,"context_line":"        resources \u003d get_resources_members(plugin, collection_name, context)"},{"line_number":147,"context_line":"    else:"},{"line_number":148,"context_line":"        resources \u003d get_resources_default(plugin, collection_name, context)"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    return resources"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"def _sync_resources(plugin, context, object_type, collection_name):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9f436f4f_b07cbb20","line":150,"range":{"start_line":141,"start_character":4,"end_line":150,"end_character":20},"updated":"2017-08-20 09:08:52.000000000","message":"better to use a dictonary that maps to functions.\n\nie: \n\n{odl_const.ODL_MEMBERS: get_resource_members, \n...,\n}\n\nmuch cleaner to read and also allows the interpreter to optimize it.","commit_id":"9054eab266f53da0835c376b6dc1ceb24b864b3b"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"c6d89aa46d094db20a5bab4355d75af8d16b8616","unresolved":false,"context_lines":[{"line_number":112,"context_line":"        context.session, _CANARY_NETWORK_ID, operation\u003dodl_const.ODL_CREATE)"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"def get_resources_default(plugin, collection_name, context):"},{"line_number":116,"context_line":"    obj_getter \u003d getattr(plugin, \u0027get_%s\u0027 % collection_name)"},{"line_number":117,"context_line":"    return obj_getter(context)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"def get_resources_bgpvpn(plugin, collection_name, context):"},{"line_number":121,"context_line":"    bgpvpns \u003d plugin.get_bgpvpns(context)"},{"line_number":122,"context_line":"    resources \u003d []"},{"line_number":123,"context_line":"    for bgpvpn in bgpvpns:"},{"line_number":124,"context_line":"        obj_getter \u003d getattr(plugin, collection_name)"},{"line_number":125,"context_line":"        resources.append(obj_getter(context, bgpvpn[\u0027id\u0027]))"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"    return resources"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"def get_resources_members(plugin, collection_name, context):"},{"line_number":131,"context_line":"    pools \u003d plugin.get_pools(context)"},{"line_number":132,"context_line":"    resources \u003d []"},{"line_number":133,"context_line":"    for pool in pools:"},{"line_number":134,"context_line":"        obj_getter \u003d getattr(plugin, \u0027get_pool_members\u0027)"},{"line_number":135,"context_line":"        resources.append(obj_getter(context, pool[\u0027id\u0027]))"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    return resources"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"def get_resources(plugin, collection_name, context, obj_type):"},{"line_number":141,"context_line":"    if collection_name in [odl_const.ODL_BGPVPN_NETWORK_ASSOCIATIONS,"},{"line_number":142,"context_line":"                           odl_const.ODL_BGPVPN_ROUTER_ASSOCIATIONS]:"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        resources \u003d get_resources_bgpvpn(plugin, collection_name, context)"},{"line_number":145,"context_line":"    elif collection_name \u003d\u003d odl_const.ODL_MEMBERS:"},{"line_number":146,"context_line":"        resources \u003d get_resources_members(plugin, collection_name, context)"},{"line_number":147,"context_line":"    else:"},{"line_number":148,"context_line":"        resources \u003d get_resources_default(plugin, collection_name, context)"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    return resources"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"def _sync_resources(plugin, context, object_type, collection_name):"},{"line_number":154,"context_line":"    resources \u003d get_resources(plugin, collection_name,"},{"line_number":155,"context_line":"                              context, collection_name)"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"    for resource in resources:"},{"line_number":158,"context_line":"        journal.record(context, object_type, resource[\u0027id\u0027],"},{"line_number":159,"context_line":"                       odl_const.ODL_CREATE, resource)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9f436f4f_50734f4e","line":159,"range":{"start_line":115,"start_character":0,"end_line":159,"end_character":54},"updated":"2017-08-20 09:08:52.000000000","message":"None of the functions have an associated test","commit_id":"9054eab266f53da0835c376b6dc1ceb24b864b3b"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"436ee09548c50a647710ae9483cd094262aeb82f","unresolved":false,"context_lines":[{"line_number":35,"context_line":"_CLIENT \u003d client.OpenDaylightRestClientGlobal()"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"_ORDERED_ODL_RESOURCES \u003d ("},{"line_number":38,"context_line":"    (odl_const.ODL_SG, \u0027get_resources_default\u0027),"},{"line_number":39,"context_line":"    (odl_const.ODL_SG_RULE, \u0027get_resources_default\u0027),"},{"line_number":40,"context_line":"    (odl_const.ODL_NETWORK, \u0027get_resources_default\u0027),"},{"line_number":41,"context_line":"    (odl_const.ODL_SUBNET, \u0027get_resources_default\u0027),"},{"line_number":42,"context_line":"    (odl_const.ODL_ROUTER, \u0027get_resources_default\u0027),"},{"line_number":43,"context_line":"    (odl_const.ODL_PORT, \u0027get_resources_default\u0027),"},{"line_number":44,"context_line":"    (odl_const.ODL_FLOATINGIP, \u0027get_resources_default\u0027),"},{"line_number":45,"context_line":"    (odl_const.ODL_LOADBALANCER, \u0027get_resources_default\u0027),"},{"line_number":46,"context_line":"    (odl_const.ODL_LISTENER, \u0027get_resources_default\u0027),"},{"line_number":47,"context_line":"    (odl_const.ODL_POOL, \u0027get_resources_default\u0027),"},{"line_number":48,"context_line":"    (odl_const.ODL_MEMBER, \u0027get_resources_members\u0027),"},{"line_number":49,"context_line":"    (odl_const.ODL_HEALTHMONITOR, \u0027get_resources_default\u0027),"},{"line_number":50,"context_line":"    (odl_const.ODL_QOS_POLICY, \u0027get_resources_default\u0027),"},{"line_number":51,"context_line":"    (odl_const.ODL_TRUNK, \u0027get_resources_default\u0027),"},{"line_number":52,"context_line":"    (odl_const.ODL_BGPVPN, \u0027get_resources_default\u0027),"},{"line_number":53,"context_line":"    (odl_const.ODL_BGPVPN_NETWORK_ASSOCIATION, \u0027get_resources_bgpvpn\u0027),"},{"line_number":54,"context_line":"    (odl_const.ODL_BGPVPN_ROUTER_ASSOCIATION, \u0027get_resources_bgpvpn\u0027),"},{"line_number":55,"context_line":"    (odl_const.ODL_SFC_FLOW_CLASSIFIER, \u0027get_resources_default\u0027),"},{"line_number":56,"context_line":"    (odl_const.ODL_SFC_PORT_PAIR, \u0027get_resources_default\u0027),"},{"line_number":57,"context_line":"    (odl_const.ODL_SFC_PORT_PAIR_GROUP, \u0027get_resources_default\u0027),"},{"line_number":58,"context_line":"    (odl_const.ODL_SFC_PORT_CHAIN, \u0027get_resources_default\u0027),"},{"line_number":59,"context_line":"    (odl_const.ODL_L2GATEWAY, \u0027get_resources_default\u0027),"},{"line_number":60,"context_line":"    (odl_const.ODL_L2GATEWAY_CONNECTION, \u0027get_resources_default\u0027)"},{"line_number":61,"context_line":")"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"ALL_RESOURCES \u003d {}"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f436f4f_9dfd273c","line":60,"range":{"start_line":38,"start_character":0,"end_line":60,"end_character":65},"updated":"2017-08-22 07:49:21.000000000","message":"If you will want to change the name of those functions in the future, it will become a nightmare. Perhaps would be better to create constants for those.","commit_id":"5e1181ba3ed7fd9fee7838bf002f5cbe6c32b1c5"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"0ab6b3715b46b461195a22b01717a825819b9284","unresolved":false,"context_lines":[{"line_number":35,"context_line":"_CLIENT \u003d client.OpenDaylightRestClientGlobal()"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"_ORDERED_ODL_RESOURCES \u003d ("},{"line_number":38,"context_line":"    (odl_const.ODL_SG, \u0027get_resources_default\u0027),"},{"line_number":39,"context_line":"    (odl_const.ODL_SG_RULE, \u0027get_resources_default\u0027),"},{"line_number":40,"context_line":"    (odl_const.ODL_NETWORK, \u0027get_resources_default\u0027),"},{"line_number":41,"context_line":"    (odl_const.ODL_SUBNET, \u0027get_resources_default\u0027),"},{"line_number":42,"context_line":"    (odl_const.ODL_ROUTER, \u0027get_resources_default\u0027),"},{"line_number":43,"context_line":"    (odl_const.ODL_PORT, \u0027get_resources_default\u0027),"},{"line_number":44,"context_line":"    (odl_const.ODL_FLOATINGIP, \u0027get_resources_default\u0027),"},{"line_number":45,"context_line":"    (odl_const.ODL_LOADBALANCER, \u0027get_resources_default\u0027),"},{"line_number":46,"context_line":"    (odl_const.ODL_LISTENER, \u0027get_resources_default\u0027),"},{"line_number":47,"context_line":"    (odl_const.ODL_POOL, \u0027get_resources_default\u0027),"},{"line_number":48,"context_line":"    (odl_const.ODL_MEMBER, \u0027get_resources_members\u0027),"},{"line_number":49,"context_line":"    (odl_const.ODL_HEALTHMONITOR, \u0027get_resources_default\u0027),"},{"line_number":50,"context_line":"    (odl_const.ODL_QOS_POLICY, \u0027get_resources_default\u0027),"},{"line_number":51,"context_line":"    (odl_const.ODL_TRUNK, \u0027get_resources_default\u0027),"},{"line_number":52,"context_line":"    (odl_const.ODL_BGPVPN, \u0027get_resources_default\u0027),"},{"line_number":53,"context_line":"    (odl_const.ODL_BGPVPN_NETWORK_ASSOCIATION, \u0027get_resources_bgpvpn\u0027),"},{"line_number":54,"context_line":"    (odl_const.ODL_BGPVPN_ROUTER_ASSOCIATION, \u0027get_resources_bgpvpn\u0027),"},{"line_number":55,"context_line":"    (odl_const.ODL_SFC_FLOW_CLASSIFIER, \u0027get_resources_default\u0027),"},{"line_number":56,"context_line":"    (odl_const.ODL_SFC_PORT_PAIR, \u0027get_resources_default\u0027),"},{"line_number":57,"context_line":"    (odl_const.ODL_SFC_PORT_PAIR_GROUP, \u0027get_resources_default\u0027),"},{"line_number":58,"context_line":"    (odl_const.ODL_SFC_PORT_CHAIN, \u0027get_resources_default\u0027),"},{"line_number":59,"context_line":"    (odl_const.ODL_L2GATEWAY, \u0027get_resources_default\u0027),"},{"line_number":60,"context_line":"    (odl_const.ODL_L2GATEWAY_CONNECTION, \u0027get_resources_default\u0027)"},{"line_number":61,"context_line":")"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"ALL_RESOURCES \u003d {}"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f287b81_4221829f","line":60,"range":{"start_line":38,"start_character":0,"end_line":60,"end_character":65},"in_reply_to":"9f436f4f_9dfd273c","updated":"2017-08-22 10:49:48.000000000","message":"Done","commit_id":"5e1181ba3ed7fd9fee7838bf002f5cbe6c32b1c5"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"436ee09548c50a647710ae9483cd094262aeb82f","unresolved":false,"context_lines":[{"line_number":143,"context_line":""},{"line_number":144,"context_line":"def _sync_resources(plugin, context, object_type,"},{"line_number":145,"context_line":"                    collection_name, function):"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"    get_resources \u003d getattr(sys.modules[__name__], function)"},{"line_number":148,"context_line":"    resources \u003d get_resources(plugin, collection_name, context)"},{"line_number":149,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"7f287b81_4e51b30e","line":146,"updated":"2017-08-22 07:49:21.000000000","message":"no need for an extra line","commit_id":"5e1181ba3ed7fd9fee7838bf002f5cbe6c32b1c5"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"0ab6b3715b46b461195a22b01717a825819b9284","unresolved":false,"context_lines":[{"line_number":143,"context_line":""},{"line_number":144,"context_line":"def _sync_resources(plugin, context, object_type,"},{"line_number":145,"context_line":"                    collection_name, function):"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"    get_resources \u003d getattr(sys.modules[__name__], function)"},{"line_number":148,"context_line":"    resources \u003d get_resources(plugin, collection_name, context)"},{"line_number":149,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"7f287b81_222676b9","line":146,"in_reply_to":"7f287b81_4e51b30e","updated":"2017-08-22 10:49:48.000000000","message":"Done","commit_id":"5e1181ba3ed7fd9fee7838bf002f5cbe6c32b1c5"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"436ee09548c50a647710ae9483cd094262aeb82f","unresolved":false,"context_lines":[{"line_number":144,"context_line":"def _sync_resources(plugin, context, object_type,"},{"line_number":145,"context_line":"                    collection_name, function):"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"    get_resources \u003d getattr(sys.modules[__name__], function)"},{"line_number":148,"context_line":"    resources \u003d get_resources(plugin, collection_name, context)"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    for resource in resources:"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f287b81_0e260bb9","line":147,"range":{"start_line":147,"start_character":28,"end_line":147,"end_character":49},"updated":"2017-08-22 07:49:21.000000000","message":"__import__[__name__] does the same without importing sys.\n\nIt\u0027s a matter of taste, I\u0027m more inclined for this solution. Then again, taste and whatever you want is ok.","commit_id":"5e1181ba3ed7fd9fee7838bf002f5cbe6c32b1c5"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"0ab6b3715b46b461195a22b01717a825819b9284","unresolved":false,"context_lines":[{"line_number":144,"context_line":"def _sync_resources(plugin, context, object_type,"},{"line_number":145,"context_line":"                    collection_name, function):"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"    get_resources \u003d getattr(sys.modules[__name__], function)"},{"line_number":148,"context_line":"    resources \u003d get_resources(plugin, collection_name, context)"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    for resource in resources:"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f287b81_02cb7a53","line":147,"range":{"start_line":147,"start_character":28,"end_line":147,"end_character":49},"in_reply_to":"7f287b81_0e260bb9","updated":"2017-08-22 10:49:48.000000000","message":"__import__ is a function therefore it can not be used like dictionary syntax. I tried with very basic example, your method work. But did not work here, may we need to pass global and locals https://docs.python.org/3/library/functions.html#__import__.","commit_id":"5e1181ba3ed7fd9fee7838bf002f5cbe6c32b1c5"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"c31f0751efe6fe590b727a57f3e846c115c2f0bf","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    (odl_const.ODL_LOADBALANCER, _DEFAULT_RESOURCES),"},{"line_number":49,"context_line":"    (odl_const.ODL_LISTENER, _DEFAULT_RESOURCES),"},{"line_number":50,"context_line":"    (odl_const.ODL_POOL, _DEFAULT_RESOURCES),"},{"line_number":51,"context_line":"    (odl_const.ODL_MEMBER, \u0027get_resources_members\u0027),"},{"line_number":52,"context_line":"    (odl_const.ODL_HEALTHMONITOR, _DEFAULT_RESOURCES),"},{"line_number":53,"context_line":"    (odl_const.ODL_QOS_POLICY, _DEFAULT_RESOURCES),"},{"line_number":54,"context_line":"    (odl_const.ODL_TRUNK, _DEFAULT_RESOURCES),"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_6250fe33","line":51,"range":{"start_line":51,"start_character":27,"end_line":51,"end_character":50},"updated":"2017-08-22 11:35:09.000000000","message":"makes sense to also put this one into a CONSTANT. Even there is no repetition, making it a constant will create coherence in the code.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"364243dec955f8e8927b03b7b6b0ff2a858bb1f1","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    (odl_const.ODL_LOADBALANCER, _DEFAULT_RESOURCES),"},{"line_number":49,"context_line":"    (odl_const.ODL_LISTENER, _DEFAULT_RESOURCES),"},{"line_number":50,"context_line":"    (odl_const.ODL_POOL, _DEFAULT_RESOURCES),"},{"line_number":51,"context_line":"    (odl_const.ODL_MEMBER, \u0027get_resources_members\u0027),"},{"line_number":52,"context_line":"    (odl_const.ODL_HEALTHMONITOR, _DEFAULT_RESOURCES),"},{"line_number":53,"context_line":"    (odl_const.ODL_QOS_POLICY, _DEFAULT_RESOURCES),"},{"line_number":54,"context_line":"    (odl_const.ODL_TRUNK, _DEFAULT_RESOURCES),"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_926c4309","line":51,"range":{"start_line":51,"start_character":27,"end_line":51,"end_character":50},"in_reply_to":"7f287b81_1af99a7f","updated":"2017-08-23 06:34:14.000000000","message":"It is better, if all the constants are kept at the same location. So we will now, where to look for a constant in this file.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"364243dec955f8e8927b03b7b6b0ff2a858bb1f1","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    (odl_const.ODL_LOADBALANCER, _DEFAULT_RESOURCES),"},{"line_number":49,"context_line":"    (odl_const.ODL_LISTENER, _DEFAULT_RESOURCES),"},{"line_number":50,"context_line":"    (odl_const.ODL_POOL, _DEFAULT_RESOURCES),"},{"line_number":51,"context_line":"    (odl_const.ODL_MEMBER, \u0027get_resources_members\u0027),"},{"line_number":52,"context_line":"    (odl_const.ODL_HEALTHMONITOR, _DEFAULT_RESOURCES),"},{"line_number":53,"context_line":"    (odl_const.ODL_QOS_POLICY, _DEFAULT_RESOURCES),"},{"line_number":54,"context_line":"    (odl_const.ODL_TRUNK, _DEFAULT_RESOURCES),"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_32d7cfc2","line":51,"range":{"start_line":51,"start_character":27,"end_line":51,"end_character":50},"in_reply_to":"7f287b81_6250fe33","updated":"2017-08-23 06:34:14.000000000","message":"Done","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"72b75ddf2a797426140babd0a4ec0267edf238d7","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    (odl_const.ODL_LOADBALANCER, _DEFAULT_RESOURCES),"},{"line_number":49,"context_line":"    (odl_const.ODL_LISTENER, _DEFAULT_RESOURCES),"},{"line_number":50,"context_line":"    (odl_const.ODL_POOL, _DEFAULT_RESOURCES),"},{"line_number":51,"context_line":"    (odl_const.ODL_MEMBER, \u0027get_resources_members\u0027),"},{"line_number":52,"context_line":"    (odl_const.ODL_HEALTHMONITOR, _DEFAULT_RESOURCES),"},{"line_number":53,"context_line":"    (odl_const.ODL_QOS_POLICY, _DEFAULT_RESOURCES),"},{"line_number":54,"context_line":"    (odl_const.ODL_TRUNK, _DEFAULT_RESOURCES),"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_1af99a7f","line":51,"range":{"start_line":51,"start_character":27,"end_line":51,"end_character":50},"in_reply_to":"7f287b81_6250fe33","updated":"2017-08-22 16:52:39.000000000","message":"can we have reference to a method directly?\nthis definition needs to be after method definitions, though.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"8522ec4b8dd338fcdd4989feb61b7abea1387638","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    (odl_const.ODL_LOADBALANCER, _DEFAULT_RESOURCES),"},{"line_number":49,"context_line":"    (odl_const.ODL_LISTENER, _DEFAULT_RESOURCES),"},{"line_number":50,"context_line":"    (odl_const.ODL_POOL, _DEFAULT_RESOURCES),"},{"line_number":51,"context_line":"    (odl_const.ODL_MEMBER, \u0027get_resources_members\u0027),"},{"line_number":52,"context_line":"    (odl_const.ODL_HEALTHMONITOR, _DEFAULT_RESOURCES),"},{"line_number":53,"context_line":"    (odl_const.ODL_QOS_POLICY, _DEFAULT_RESOURCES),"},{"line_number":54,"context_line":"    (odl_const.ODL_TRUNK, _DEFAULT_RESOURCES),"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_8d3ae4e4","line":51,"range":{"start_line":51,"start_character":27,"end_line":51,"end_character":50},"in_reply_to":"7f287b81_926c4309","updated":"2017-08-23 07:37:42.000000000","message":"I agree with rajiv. Also PEP8 recommends constants to be before class definitions.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"c31f0751efe6fe590b727a57f3e846c115c2f0bf","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        context.session, _CANARY_NETWORK_ID, operation\u003dodl_const.ODL_CREATE)"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"def get_resources_default(plugin, collection_name, context):"},{"line_number":120,"context_line":"    obj_getter \u003d getattr(plugin, \u0027get_%s\u0027 % collection_name)"},{"line_number":121,"context_line":"    return obj_getter(context)"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"def get_resources_bgpvpn(plugin, collection_name, context):"},{"line_number":125,"context_line":"    bgpvpns \u003d plugin.get_bgpvpns(context)"},{"line_number":126,"context_line":"    resources \u003d []"},{"line_number":127,"context_line":"    for bgpvpn in bgpvpns:"},{"line_number":128,"context_line":"        obj_getter \u003d getattr(plugin, \u0027get_%s\u0027 % collection_name)"},{"line_number":129,"context_line":"        resource \u003d obj_getter(context, bgpvpn[\u0027id\u0027])"},{"line_number":130,"context_line":"        if resource:"},{"line_number":131,"context_line":"            resources.extend(resource)"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    return resources"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"def get_resources_members(plugin, collection_name, context):"},{"line_number":137,"context_line":"    pools \u003d plugin.get_pools(context)"},{"line_number":138,"context_line":"    resources \u003d []"},{"line_number":139,"context_line":"    for pool in pools:"},{"line_number":140,"context_line":"        resource \u003d plugin.get_pool_members(context, pool[\u0027id\u0027])"},{"line_number":141,"context_line":"        if resource:"},{"line_number":142,"context_line":"            resources.extend(resource)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    return resources"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"def _sync_resources(plugin, context, object_type,"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_9d46af4f","line":144,"range":{"start_line":119,"start_character":0,"end_line":144,"end_character":20},"updated":"2017-08-22 11:35:09.000000000","message":"Looking at this again another time, I see that they are basically the same code over and over. You can put them all together and simplify the code. If you do this, you won\u0027t need to map resources to functions.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"364243dec955f8e8927b03b7b6b0ff2a858bb1f1","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        context.session, _CANARY_NETWORK_ID, operation\u003dodl_const.ODL_CREATE)"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"def get_resources_default(plugin, collection_name, context):"},{"line_number":120,"context_line":"    obj_getter \u003d getattr(plugin, \u0027get_%s\u0027 % collection_name)"},{"line_number":121,"context_line":"    return obj_getter(context)"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"def get_resources_bgpvpn(plugin, collection_name, context):"},{"line_number":125,"context_line":"    bgpvpns \u003d plugin.get_bgpvpns(context)"},{"line_number":126,"context_line":"    resources \u003d []"},{"line_number":127,"context_line":"    for bgpvpn in bgpvpns:"},{"line_number":128,"context_line":"        obj_getter \u003d getattr(plugin, \u0027get_%s\u0027 % collection_name)"},{"line_number":129,"context_line":"        resource \u003d obj_getter(context, bgpvpn[\u0027id\u0027])"},{"line_number":130,"context_line":"        if resource:"},{"line_number":131,"context_line":"            resources.extend(resource)"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    return resources"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"def get_resources_members(plugin, collection_name, context):"},{"line_number":137,"context_line":"    pools \u003d plugin.get_pools(context)"},{"line_number":138,"context_line":"    resources \u003d []"},{"line_number":139,"context_line":"    for pool in pools:"},{"line_number":140,"context_line":"        resource \u003d plugin.get_pool_members(context, pool[\u0027id\u0027])"},{"line_number":141,"context_line":"        if resource:"},{"line_number":142,"context_line":"            resources.extend(resource)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    return resources"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"def _sync_resources(plugin, context, object_type,"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_cde8ec17","line":144,"range":{"start_line":119,"start_character":0,"end_line":144,"end_character":20},"in_reply_to":"7f287b81_9d46af4f","updated":"2017-08-23 06:34:14.000000000","message":"Done","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"c31f0751efe6fe590b727a57f3e846c115c2f0bf","unresolved":false,"context_lines":[{"line_number":146,"context_line":""},{"line_number":147,"context_line":"def _sync_resources(plugin, context, object_type,"},{"line_number":148,"context_line":"                    collection_name, function):"},{"line_number":149,"context_line":"    get_resources \u003d getattr(sys.modules[__name__], function)"},{"line_number":150,"context_line":"    resources \u003d get_resources(plugin, collection_name, context)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    for resource in resources:"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_7dbb03e5","line":149,"range":{"start_line":149,"start_character":20,"end_line":149,"end_character":60},"updated":"2017-08-22 11:35:09.000000000","message":"now that I think about it for a second time. You can make it easier by using globals()[function]\n\nThen again, look at my previous comment in L119.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"8522ec4b8dd338fcdd4989feb61b7abea1387638","unresolved":false,"context_lines":[{"line_number":146,"context_line":""},{"line_number":147,"context_line":"def _sync_resources(plugin, context, object_type,"},{"line_number":148,"context_line":"                    collection_name, function):"},{"line_number":149,"context_line":"    get_resources \u003d getattr(sys.modules[__name__], function)"},{"line_number":150,"context_line":"    resources \u003d get_resources(plugin, collection_name, context)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    for resource in resources:"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_086dc297","line":149,"range":{"start_line":149,"start_character":20,"end_line":149,"end_character":60},"in_reply_to":"7f287b81_6dd0d851","updated":"2017-08-23 07:37:42.000000000","message":"I think it\u0027s a good idea that all drivers have a common interface that we can depend on. Then we shouldn\u0027t have to do this hacky solution of creating a getter for each one. This can only grow in the future, plus it makes maintenance more difficult.\n\nWill it take too long to do it? Perhaps we can discuss how to best implement it, I don\u0027t think it should be that difficult.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"72b75ddf2a797426140babd0a4ec0267edf238d7","unresolved":false,"context_lines":[{"line_number":146,"context_line":""},{"line_number":147,"context_line":"def _sync_resources(plugin, context, object_type,"},{"line_number":148,"context_line":"                    collection_name, function):"},{"line_number":149,"context_line":"    get_resources \u003d getattr(sys.modules[__name__], function)"},{"line_number":150,"context_line":"    resources \u003d get_resources(plugin, collection_name, context)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    for resource in resources:"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_fac7ee44","line":149,"range":{"start_line":149,"start_character":20,"end_line":149,"end_character":60},"in_reply_to":"7f287b81_7dbb03e5","updated":"2017-08-22 16:52:39.000000000","message":"I suppose rajiv hit initialization order issue.\nAnyway can we enhance ALL_RESOURCE to register method?\nIf no method is registered, it falls back to default method.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"364243dec955f8e8927b03b7b6b0ff2a858bb1f1","unresolved":false,"context_lines":[{"line_number":146,"context_line":""},{"line_number":147,"context_line":"def _sync_resources(plugin, context, object_type,"},{"line_number":148,"context_line":"                    collection_name, function):"},{"line_number":149,"context_line":"    get_resources \u003d getattr(sys.modules[__name__], function)"},{"line_number":150,"context_line":"    resources \u003d get_resources(plugin, collection_name, context)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    for resource in resources:"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_6dd0d851","line":149,"range":{"start_line":149,"start_character":20,"end_line":149,"end_character":60},"in_reply_to":"7f287b81_fac7ee44","updated":"2017-08-23 06:34:14.000000000","message":"I really liked the idea, to keep code close to the driver. but it will need to touch a lot of code(for all drivers as well as recovery one). Can we do it later?","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"8ad6196231edcf7563f464d75106fee7511c0236","unresolved":false,"context_lines":[{"line_number":32,"context_line":"_OPS_TO_DELETE_ON_SYNC \u003d (odl_const.ODL_CREATE, odl_const.ODL_UPDATE)"},{"line_number":33,"context_line":"_CLIENT \u003d client.OpenDaylightRestClientGlobal()"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"_DEFAULT_RESOURCES \u003d \u0027get_resources_default\u0027"},{"line_number":36,"context_line":"_BGPVPN_ASSOC_RESOURCES \u003d \u0027get_resources_bgpvpn\u0027"},{"line_number":37,"context_line":"_MEMBERS_RESOURCES \u003d \u0027get_resources_members\u0027"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"_ORDERED_ODL_RESOURCES \u003d ("},{"line_number":40,"context_line":"    (odl_const.ODL_SG, _DEFAULT_RESOURCES),"}],"source_content_type":"text/x-python","patch_set":8,"id":"7f287b81_487d0a1b","line":37,"range":{"start_line":35,"start_character":0,"end_line":37,"end_character":44},"updated":"2017-08-23 07:37:24.000000000","message":"makes more sense to be the other way around. ie: _RESOURCES_BGPVPN_ASSOC","commit_id":"1944e47b068d9d87f681e64c650d5f44d0c72dbe"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"8ad6196231edcf7563f464d75106fee7511c0236","unresolved":false,"context_lines":[{"line_number":65,"context_line":"ALL_RESOURCES \u003d {}"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"def register(driver, resources):"},{"line_number":69,"context_line":"    ALL_RESOURCES[driver] \u003d resources"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"7f287b81_7238b4d2","line":68,"updated":"2017-08-23 07:37:24.000000000","message":"I think this function should check that the driver that\u0027s being registered has a common interface (defined with an ABC) that we should define with an abstract class.\n\nSo to sum up, here we would add a check of isinstance(driver, OurABCClass) or raise an exception (which we also need to create) otherwise.","commit_id":"1944e47b068d9d87f681e64c650d5f44d0c72dbe"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"8ad6196231edcf7563f464d75106fee7511c0236","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    return obj_getter(context)"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"def get_resources_require_id(plugin, context, get_id_method, method_name):"},{"line_number":124,"context_line":"    dep_id_resources \u003d getattr(plugin, get_id_method)(context)"},{"line_number":125,"context_line":"    resources \u003d []"},{"line_number":126,"context_line":"    for d_resource in dep_id_resources:"}],"source_content_type":"text/x-python","patch_set":8,"id":"7f287b81_68d566b9","line":123,"range":{"start_line":123,"start_character":29,"end_line":123,"end_character":59},"updated":"2017-08-23 07:37:24.000000000","message":"all other functions have (plugin, collection_name, context) whereas this has the last two switched, it makes sense to keep the same order, makes it much much easier to read the code.","commit_id":"1944e47b068d9d87f681e64c650d5f44d0c72dbe"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"8ad6196231edcf7563f464d75106fee7511c0236","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        context.session, _CANARY_NETWORK_ID, operation\u003dodl_const.ODL_CREATE)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"def get_resources_default(plugin, collection_name, context):"},{"line_number":119,"context_line":"    obj_getter \u003d getattr(plugin, \u0027get_%s\u0027 % collection_name)"},{"line_number":120,"context_line":"    return obj_getter(context)"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"def get_resources_require_id(plugin, context, get_id_method, method_name):"},{"line_number":124,"context_line":"    dep_id_resources \u003d getattr(plugin, get_id_method)(context)"},{"line_number":125,"context_line":"    resources \u003d []"},{"line_number":126,"context_line":"    for d_resource in dep_id_resources:"},{"line_number":127,"context_line":"        obj_getter \u003d getattr(plugin, method_name)"},{"line_number":128,"context_line":"        resource \u003d obj_getter(context, d_resource[\u0027id\u0027])"},{"line_number":129,"context_line":"        if resource:"},{"line_number":130,"context_line":"            resources.extend(resource)"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    return resources"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"def get_resources_bgpvpn(plugin, collection_name, context):"},{"line_number":136,"context_line":"    return get_resources_require_id(plugin, context, \u0027get_bgpvpns\u0027,"},{"line_number":137,"context_line":"                                    \u0027get_%s\u0027 % collection_name)"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"def get_resources_members(plugin, collection_name, context):"},{"line_number":141,"context_line":"    return get_resources_require_id(plugin, context,"},{"line_number":142,"context_line":"                                    \u0027get_pools\u0027, \u0027get_pool_members\u0027)"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"def _sync_resources(plugin, context, object_type,"}],"source_content_type":"text/x-python","patch_set":8,"id":"7f287b81_d2088829","line":142,"range":{"start_line":118,"start_character":0,"end_line":142,"end_character":68},"updated":"2017-08-23 07:37:24.000000000","message":"All this is solved if all drivers use a common interface. I think we should aim at that, instead of doing this. Will transfer the responsibility to the driver.","commit_id":"1944e47b068d9d87f681e64c650d5f44d0c72dbe"}],"networking_odl/tests/unit/journal/test_full_sync.py":[{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"c6d89aa46d094db20a5bab4355d75af8d16b8616","unresolved":false,"context_lines":[{"line_number":164,"context_line":"                    (odl_const.ODL_SFC_FLOW_CLASSIFIER,"},{"line_number":165,"context_line":"                        odl_const.NETWORKING_SFC_FLOW_CLASSIFIERS),"},{"line_number":166,"context_line":"                    (odl_const.ODL_SFC_PORT_PAIR,"},{"line_number":167,"context_line":"                        odl_const.NETWORKING_SFC_PORT_PAIRS),"},{"line_number":168,"context_line":"                    (odl_const.ODL_SFC_PORT_PAIR_GROUP,"},{"line_number":169,"context_line":"                        odl_const.NETWORKING_SFC_PORT_PAIR_GROUPS),"},{"line_number":170,"context_line":"                    (odl_const.ODL_SFC_PORT_CHAIN,"}],"source_content_type":"text/x-python","patch_set":3,"id":"9f436f4f_308e8b27","line":167,"updated":"2017-08-20 09:08:52.000000000","message":"This wasn\u0027t failing before? How\u0027s that?","commit_id":"9054eab266f53da0835c376b6dc1ceb24b864b3b"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"436ee09548c50a647710ae9483cd094262aeb82f","unresolved":false,"context_lines":[{"line_number":164,"context_line":"                    (odl_const.ODL_SFC_FLOW_CLASSIFIER,"},{"line_number":165,"context_line":"                        odl_const.NETWORKING_SFC_FLOW_CLASSIFIERS),"},{"line_number":166,"context_line":"                    (odl_const.ODL_SFC_PORT_PAIR,"},{"line_number":167,"context_line":"                        odl_const.NETWORKING_SFC_PORT_PAIRS),"},{"line_number":168,"context_line":"                    (odl_const.ODL_SFC_PORT_PAIR_GROUP,"},{"line_number":169,"context_line":"                        odl_const.NETWORKING_SFC_PORT_PAIR_GROUPS),"},{"line_number":170,"context_line":"                    (odl_const.ODL_SFC_PORT_CHAIN,"}],"source_content_type":"text/x-python","patch_set":4,"id":"7f287b81_cec12383","line":167,"range":{"start_line":167,"start_character":34,"end_line":167,"end_character":59},"updated":"2017-08-22 07:49:21.000000000","message":"This wasn\u0027t failing in tests before? How\u0027s that?","commit_id":"5e1181ba3ed7fd9fee7838bf002f5cbe6c32b1c5"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"c31f0751efe6fe590b727a57f3e846c115c2f0bf","unresolved":false,"context_lines":[{"line_number":130,"context_line":"    @mock.patch.object(full_sync, \u0027_sync_resources\u0027)"},{"line_number":131,"context_line":"    @mock.patch.object(journal, \u0027record\u0027)"},{"line_number":132,"context_line":"    def test_sync_resource_order("},{"line_number":133,"context_line":"            self, record_mock, _sync_resources_mock, _full_sync_needed_mock,"},{"line_number":134,"context_line":"            delete_pending_rows_mock):"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"        full_sync.ALL_RESOURCES \u003d self._get_all_resources()"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_ddd8b780","line":133,"range":{"start_line":133,"start_character":31,"end_line":133,"end_character":75},"updated":"2017-08-22 11:35:09.000000000","message":"I know it\u0027s outside your patch, but no need to use the \u0027_\u0027 prefix","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"364243dec955f8e8927b03b7b6b0ff2a858bb1f1","unresolved":false,"context_lines":[{"line_number":130,"context_line":"    @mock.patch.object(full_sync, \u0027_sync_resources\u0027)"},{"line_number":131,"context_line":"    @mock.patch.object(journal, \u0027record\u0027)"},{"line_number":132,"context_line":"    def test_sync_resource_order("},{"line_number":133,"context_line":"            self, record_mock, _sync_resources_mock, _full_sync_needed_mock,"},{"line_number":134,"context_line":"            delete_pending_rows_mock):"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"        full_sync.ALL_RESOURCES \u003d self._get_all_resources()"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_8db1c4e4","line":133,"range":{"start_line":133,"start_character":31,"end_line":133,"end_character":75},"in_reply_to":"7f287b81_ddd8b780","updated":"2017-08-23 06:34:14.000000000","message":"Done","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"c31f0751efe6fe590b727a57f3e846c115c2f0bf","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        _full_sync_needed_mock._full_sync_needed.return_value \u003d True"},{"line_number":138,"context_line":"        context \u003d mock.MagicMock()"},{"line_number":139,"context_line":"        full_sync.full_sync(context)"},{"line_number":140,"context_line":"        d_res \u003d \"get_resources_default\""},{"line_number":141,"context_line":"        _sync_resources_mock.assert_has_calls("},{"line_number":142,"context_line":"            [mock.call(mock.ANY, mock.ANY, object_type, collection_name, func)"},{"line_number":143,"context_line":"                for (object_type, collection_name, func) in ["}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_fd96d394","line":140,"range":{"start_line":140,"start_character":8,"end_line":140,"end_character":39},"updated":"2017-08-22 11:35:09.000000000","message":"you already have this defined in the module, use it from there.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"8522ec4b8dd338fcdd4989feb61b7abea1387638","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        _full_sync_needed_mock._full_sync_needed.return_value \u003d True"},{"line_number":138,"context_line":"        context \u003d mock.MagicMock()"},{"line_number":139,"context_line":"        full_sync.full_sync(context)"},{"line_number":140,"context_line":"        d_res \u003d \"get_resources_default\""},{"line_number":141,"context_line":"        _sync_resources_mock.assert_has_calls("},{"line_number":142,"context_line":"            [mock.call(mock.ANY, mock.ANY, object_type, collection_name, func)"},{"line_number":143,"context_line":"                for (object_type, collection_name, func) in ["}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_08c5c23c","line":140,"range":{"start_line":140,"start_character":8,"end_line":140,"end_character":39},"in_reply_to":"7f287b81_0d1b941b","updated":"2017-08-23 07:37:42.000000000","message":"I think it\u0027s OK to reuse the constants to re-create _ORDERED_ODL_RESOURCES in this place, if that\u0027s what you want to test. (instead of d_res or the strings below (marked with a here)).\n\nAlso of importance, you don\u0027t have tests for those functions at all.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"364243dec955f8e8927b03b7b6b0ff2a858bb1f1","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        _full_sync_needed_mock._full_sync_needed.return_value \u003d True"},{"line_number":138,"context_line":"        context \u003d mock.MagicMock()"},{"line_number":139,"context_line":"        full_sync.full_sync(context)"},{"line_number":140,"context_line":"        d_res \u003d \"get_resources_default\""},{"line_number":141,"context_line":"        _sync_resources_mock.assert_has_calls("},{"line_number":142,"context_line":"            [mock.call(mock.ANY, mock.ANY, object_type, collection_name, func)"},{"line_number":143,"context_line":"                for (object_type, collection_name, func) in ["}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_0d1b941b","line":140,"range":{"start_line":140,"start_character":8,"end_line":140,"end_character":39},"in_reply_to":"7f287b81_fd96d394","updated":"2017-08-23 06:34:14.000000000","message":"I want it different, so that in case someone change this variable in full sync file by mistake, this test case catch it.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"8522ec4b8dd338fcdd4989feb61b7abea1387638","unresolved":false,"context_lines":[{"line_number":154,"context_line":"                    (odl_const.ODL_LISTENER, odl_const.ODL_LISTENERS, d_res),"},{"line_number":155,"context_line":"                    (odl_const.ODL_POOL, odl_const.ODL_POOLS, d_res),"},{"line_number":156,"context_line":"                    (odl_const.ODL_MEMBER, odl_const.ODL_MEMBERS,"},{"line_number":157,"context_line":"                        \"get_resources_members\"),"},{"line_number":158,"context_line":"                    (odl_const.ODL_HEALTHMONITOR,"},{"line_number":159,"context_line":"                        odl_const.ODL_HEALTHMONITORS, d_res),"},{"line_number":160,"context_line":"                    (odl_const.ODL_QOS_POLICY,"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_8898926a","line":157,"updated":"2017-08-23 07:37:42.000000000","message":"here","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"8522ec4b8dd338fcdd4989feb61b7abea1387638","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                    (odl_const.ODL_BGPVPN, odl_const.ODL_BGPVPNS, d_res),"},{"line_number":164,"context_line":"                    (odl_const.ODL_BGPVPN_NETWORK_ASSOCIATION,"},{"line_number":165,"context_line":"                        odl_const.ODL_BGPVPN_NETWORK_ASSOCIATIONS,"},{"line_number":166,"context_line":"                        \"get_resources_bgpvpn\"),"},{"line_number":167,"context_line":"                    (odl_const.ODL_BGPVPN_ROUTER_ASSOCIATION,"},{"line_number":168,"context_line":"                        odl_const.ODL_BGPVPN_ROUTER_ASSOCIATIONS,"},{"line_number":169,"context_line":"                        \"get_resources_bgpvpn\"),"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_689d6658","line":166,"updated":"2017-08-23 07:37:42.000000000","message":"here","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"8522ec4b8dd338fcdd4989feb61b7abea1387638","unresolved":false,"context_lines":[{"line_number":166,"context_line":"                        \"get_resources_bgpvpn\"),"},{"line_number":167,"context_line":"                    (odl_const.ODL_BGPVPN_ROUTER_ASSOCIATION,"},{"line_number":168,"context_line":"                        odl_const.ODL_BGPVPN_ROUTER_ASSOCIATIONS,"},{"line_number":169,"context_line":"                        \"get_resources_bgpvpn\"),"},{"line_number":170,"context_line":"                    (odl_const.ODL_SFC_FLOW_CLASSIFIER,"},{"line_number":171,"context_line":"                        odl_const.NETWORKING_SFC_FLOW_CLASSIFIERS, d_res),"},{"line_number":172,"context_line":"                    (odl_const.ODL_SFC_PORT_PAIR,"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_48a2aa9c","line":169,"updated":"2017-08-23 07:37:42.000000000","message":"here","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"c31f0751efe6fe590b727a57f3e846c115c2f0bf","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        d_res \u003d \"get_resources_default\""},{"line_number":141,"context_line":"        _sync_resources_mock.assert_has_calls("},{"line_number":142,"context_line":"            [mock.call(mock.ANY, mock.ANY, object_type, collection_name, func)"},{"line_number":143,"context_line":"                for (object_type, collection_name, func) in ["},{"line_number":144,"context_line":"                    (odl_const.ODL_SG, odl_const.ODL_SGS, d_res),"},{"line_number":145,"context_line":"                    (odl_const.ODL_SG_RULE, odl_const.ODL_SG_RULES, d_res),"},{"line_number":146,"context_line":"                    (odl_const.ODL_NETWORK, odl_const.ODL_NETWORKS, d_res),"},{"line_number":147,"context_line":"                    (odl_const.ODL_SUBNET, odl_const.ODL_SUBNETS, d_res),"},{"line_number":148,"context_line":"                    (odl_const.ODL_ROUTER, odl_const.ODL_ROUTERS, d_res),"},{"line_number":149,"context_line":"                    (odl_const.ODL_PORT, odl_const.ODL_PORTS, d_res),"},{"line_number":150,"context_line":"                    (odl_const.ODL_FLOATINGIP,"},{"line_number":151,"context_line":"                        odl_const.ODL_FLOATINGIPS, d_res),"},{"line_number":152,"context_line":"                    (odl_const.ODL_LOADBALANCER,"},{"line_number":153,"context_line":"                        odl_const.ODL_LOADBALANCERS, d_res),"},{"line_number":154,"context_line":"                    (odl_const.ODL_LISTENER, odl_const.ODL_LISTENERS, d_res),"},{"line_number":155,"context_line":"                    (odl_const.ODL_POOL, odl_const.ODL_POOLS, d_res),"},{"line_number":156,"context_line":"                    (odl_const.ODL_MEMBER, odl_const.ODL_MEMBERS,"},{"line_number":157,"context_line":"                        \"get_resources_members\"),"},{"line_number":158,"context_line":"                    (odl_const.ODL_HEALTHMONITOR,"},{"line_number":159,"context_line":"                        odl_const.ODL_HEALTHMONITORS, d_res),"},{"line_number":160,"context_line":"                    (odl_const.ODL_QOS_POLICY,"},{"line_number":161,"context_line":"                        odl_const.ODL_QOS_POLICIES, d_res),"},{"line_number":162,"context_line":"                    (odl_const.ODL_TRUNK, odl_const.ODL_TRUNKS, d_res),"},{"line_number":163,"context_line":"                    (odl_const.ODL_BGPVPN, odl_const.ODL_BGPVPNS, d_res),"},{"line_number":164,"context_line":"                    (odl_const.ODL_BGPVPN_NETWORK_ASSOCIATION,"},{"line_number":165,"context_line":"                        odl_const.ODL_BGPVPN_NETWORK_ASSOCIATIONS,"},{"line_number":166,"context_line":"                        \"get_resources_bgpvpn\"),"},{"line_number":167,"context_line":"                    (odl_const.ODL_BGPVPN_ROUTER_ASSOCIATION,"},{"line_number":168,"context_line":"                        odl_const.ODL_BGPVPN_ROUTER_ASSOCIATIONS,"},{"line_number":169,"context_line":"                        \"get_resources_bgpvpn\"),"},{"line_number":170,"context_line":"                    (odl_const.ODL_SFC_FLOW_CLASSIFIER,"},{"line_number":171,"context_line":"                        odl_const.NETWORKING_SFC_FLOW_CLASSIFIERS, d_res),"},{"line_number":172,"context_line":"                    (odl_const.ODL_SFC_PORT_PAIR,"},{"line_number":173,"context_line":"                        odl_const.NETWORKING_SFC_PORT_PAIRS, d_res),"},{"line_number":174,"context_line":"                    (odl_const.ODL_SFC_PORT_PAIR_GROUP,"},{"line_number":175,"context_line":"                        odl_const.NETWORKING_SFC_PORT_PAIR_GROUPS, d_res),"},{"line_number":176,"context_line":"                    (odl_const.ODL_SFC_PORT_CHAIN,"},{"line_number":177,"context_line":"                        odl_const.NETWORKING_SFC_PORT_CHAINS, d_res),"},{"line_number":178,"context_line":"                    (odl_const.ODL_L2GATEWAY, odl_const.ODL_L2GATEWAYS, d_res),"},{"line_number":179,"context_line":"                    (odl_const.ODL_L2GATEWAY_CONNECTION,"},{"line_number":180,"context_line":"                        odl_const.ODL_L2GATEWAY_CONNECTIONS, d_res)]])"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"    def test_client_error_propagates(self):"},{"line_number":183,"context_line":"        class TestException(Exception):"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_7de8a315","line":180,"range":{"start_line":143,"start_character":20,"end_line":180,"end_character":69},"updated":"2017-08-22 11:35:09.000000000","message":"same for this :/","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"364243dec955f8e8927b03b7b6b0ff2a858bb1f1","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        d_res \u003d \"get_resources_default\""},{"line_number":141,"context_line":"        _sync_resources_mock.assert_has_calls("},{"line_number":142,"context_line":"            [mock.call(mock.ANY, mock.ANY, object_type, collection_name, func)"},{"line_number":143,"context_line":"                for (object_type, collection_name, func) in ["},{"line_number":144,"context_line":"                    (odl_const.ODL_SG, odl_const.ODL_SGS, d_res),"},{"line_number":145,"context_line":"                    (odl_const.ODL_SG_RULE, odl_const.ODL_SG_RULES, d_res),"},{"line_number":146,"context_line":"                    (odl_const.ODL_NETWORK, odl_const.ODL_NETWORKS, d_res),"},{"line_number":147,"context_line":"                    (odl_const.ODL_SUBNET, odl_const.ODL_SUBNETS, d_res),"},{"line_number":148,"context_line":"                    (odl_const.ODL_ROUTER, odl_const.ODL_ROUTERS, d_res),"},{"line_number":149,"context_line":"                    (odl_const.ODL_PORT, odl_const.ODL_PORTS, d_res),"},{"line_number":150,"context_line":"                    (odl_const.ODL_FLOATINGIP,"},{"line_number":151,"context_line":"                        odl_const.ODL_FLOATINGIPS, d_res),"},{"line_number":152,"context_line":"                    (odl_const.ODL_LOADBALANCER,"},{"line_number":153,"context_line":"                        odl_const.ODL_LOADBALANCERS, d_res),"},{"line_number":154,"context_line":"                    (odl_const.ODL_LISTENER, odl_const.ODL_LISTENERS, d_res),"},{"line_number":155,"context_line":"                    (odl_const.ODL_POOL, odl_const.ODL_POOLS, d_res),"},{"line_number":156,"context_line":"                    (odl_const.ODL_MEMBER, odl_const.ODL_MEMBERS,"},{"line_number":157,"context_line":"                        \"get_resources_members\"),"},{"line_number":158,"context_line":"                    (odl_const.ODL_HEALTHMONITOR,"},{"line_number":159,"context_line":"                        odl_const.ODL_HEALTHMONITORS, d_res),"},{"line_number":160,"context_line":"                    (odl_const.ODL_QOS_POLICY,"},{"line_number":161,"context_line":"                        odl_const.ODL_QOS_POLICIES, d_res),"},{"line_number":162,"context_line":"                    (odl_const.ODL_TRUNK, odl_const.ODL_TRUNKS, d_res),"},{"line_number":163,"context_line":"                    (odl_const.ODL_BGPVPN, odl_const.ODL_BGPVPNS, d_res),"},{"line_number":164,"context_line":"                    (odl_const.ODL_BGPVPN_NETWORK_ASSOCIATION,"},{"line_number":165,"context_line":"                        odl_const.ODL_BGPVPN_NETWORK_ASSOCIATIONS,"},{"line_number":166,"context_line":"                        \"get_resources_bgpvpn\"),"},{"line_number":167,"context_line":"                    (odl_const.ODL_BGPVPN_ROUTER_ASSOCIATION,"},{"line_number":168,"context_line":"                        odl_const.ODL_BGPVPN_ROUTER_ASSOCIATIONS,"},{"line_number":169,"context_line":"                        \"get_resources_bgpvpn\"),"},{"line_number":170,"context_line":"                    (odl_const.ODL_SFC_FLOW_CLASSIFIER,"},{"line_number":171,"context_line":"                        odl_const.NETWORKING_SFC_FLOW_CLASSIFIERS, d_res),"},{"line_number":172,"context_line":"                    (odl_const.ODL_SFC_PORT_PAIR,"},{"line_number":173,"context_line":"                        odl_const.NETWORKING_SFC_PORT_PAIRS, d_res),"},{"line_number":174,"context_line":"                    (odl_const.ODL_SFC_PORT_PAIR_GROUP,"},{"line_number":175,"context_line":"                        odl_const.NETWORKING_SFC_PORT_PAIR_GROUPS, d_res),"},{"line_number":176,"context_line":"                    (odl_const.ODL_SFC_PORT_CHAIN,"},{"line_number":177,"context_line":"                        odl_const.NETWORKING_SFC_PORT_CHAINS, d_res),"},{"line_number":178,"context_line":"                    (odl_const.ODL_L2GATEWAY, odl_const.ODL_L2GATEWAYS, d_res),"},{"line_number":179,"context_line":"                    (odl_const.ODL_L2GATEWAY_CONNECTION,"},{"line_number":180,"context_line":"                        odl_const.ODL_L2GATEWAY_CONNECTIONS, d_res)]])"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"    def test_client_error_propagates(self):"},{"line_number":183,"context_line":"        class TestException(Exception):"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_6de1f8fe","line":180,"range":{"start_line":143,"start_character":20,"end_line":180,"end_character":69},"in_reply_to":"7f287b81_7de8a315","updated":"2017-08-23 06:34:14.000000000","message":"same as above. May be if someone deleted a resource entry in that file, it will never be caught.","commit_id":"e608ee8b26763f425e808f014772d765f683ee5e"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"8ad6196231edcf7563f464d75106fee7511c0236","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        full_sync_needed_mock._full_sync_needed.return_value \u003d True"},{"line_number":138,"context_line":"        context \u003d mock.MagicMock()"},{"line_number":139,"context_line":"        full_sync.full_sync(context)"},{"line_number":140,"context_line":"        d_res \u003d \"get_resources_default\""},{"line_number":141,"context_line":"        sync_resources_mock.assert_has_calls("},{"line_number":142,"context_line":"            [mock.call(mock.ANY, mock.ANY, object_type, collection_name, func)"},{"line_number":143,"context_line":"                for (object_type, collection_name, func) in ["},{"line_number":144,"context_line":"                    (odl_const.ODL_SG, odl_const.ODL_SGS, d_res),"},{"line_number":145,"context_line":"                    (odl_const.ODL_SG_RULE, odl_const.ODL_SG_RULES, d_res),"},{"line_number":146,"context_line":"                    (odl_const.ODL_NETWORK, odl_const.ODL_NETWORKS, d_res),"},{"line_number":147,"context_line":"                    (odl_const.ODL_SUBNET, odl_const.ODL_SUBNETS, d_res),"},{"line_number":148,"context_line":"                    (odl_const.ODL_ROUTER, odl_const.ODL_ROUTERS, d_res),"},{"line_number":149,"context_line":"                    (odl_const.ODL_PORT, odl_const.ODL_PORTS, d_res),"},{"line_number":150,"context_line":"                    (odl_const.ODL_FLOATINGIP,"},{"line_number":151,"context_line":"                        odl_const.ODL_FLOATINGIPS, d_res),"},{"line_number":152,"context_line":"                    (odl_const.ODL_LOADBALANCER,"},{"line_number":153,"context_line":"                        odl_const.ODL_LOADBALANCERS, d_res),"},{"line_number":154,"context_line":"                    (odl_const.ODL_LISTENER, odl_const.ODL_LISTENERS, d_res),"},{"line_number":155,"context_line":"                    (odl_const.ODL_POOL, odl_const.ODL_POOLS, d_res),"},{"line_number":156,"context_line":"                    (odl_const.ODL_MEMBER, odl_const.ODL_MEMBERS,"},{"line_number":157,"context_line":"                        \"get_resources_members\"),"},{"line_number":158,"context_line":"                    (odl_const.ODL_HEALTHMONITOR,"},{"line_number":159,"context_line":"                        odl_const.ODL_HEALTHMONITORS, d_res),"},{"line_number":160,"context_line":"                    (odl_const.ODL_QOS_POLICY,"},{"line_number":161,"context_line":"                        odl_const.ODL_QOS_POLICIES, d_res),"},{"line_number":162,"context_line":"                    (odl_const.ODL_TRUNK, odl_const.ODL_TRUNKS, d_res),"},{"line_number":163,"context_line":"                    (odl_const.ODL_BGPVPN, odl_const.ODL_BGPVPNS, d_res),"},{"line_number":164,"context_line":"                    (odl_const.ODL_BGPVPN_NETWORK_ASSOCIATION,"},{"line_number":165,"context_line":"                        odl_const.ODL_BGPVPN_NETWORK_ASSOCIATIONS,"},{"line_number":166,"context_line":"                        \"get_resources_bgpvpn\"),"},{"line_number":167,"context_line":"                    (odl_const.ODL_BGPVPN_ROUTER_ASSOCIATION,"},{"line_number":168,"context_line":"                        odl_const.ODL_BGPVPN_ROUTER_ASSOCIATIONS,"},{"line_number":169,"context_line":"                        \"get_resources_bgpvpn\"),"},{"line_number":170,"context_line":"                    (odl_const.ODL_SFC_FLOW_CLASSIFIER,"},{"line_number":171,"context_line":"                        odl_const.NETWORKING_SFC_FLOW_CLASSIFIERS, d_res),"},{"line_number":172,"context_line":"                    (odl_const.ODL_SFC_PORT_PAIR,"},{"line_number":173,"context_line":"                        odl_const.NETWORKING_SFC_PORT_PAIRS, d_res),"},{"line_number":174,"context_line":"                    (odl_const.ODL_SFC_PORT_PAIR_GROUP,"},{"line_number":175,"context_line":"                        odl_const.NETWORKING_SFC_PORT_PAIR_GROUPS, d_res),"},{"line_number":176,"context_line":"                    (odl_const.ODL_SFC_PORT_CHAIN,"},{"line_number":177,"context_line":"                        odl_const.NETWORKING_SFC_PORT_CHAINS, d_res),"},{"line_number":178,"context_line":"                    (odl_const.ODL_L2GATEWAY, odl_const.ODL_L2GATEWAYS, d_res),"},{"line_number":179,"context_line":"                    (odl_const.ODL_L2GATEWAY_CONNECTION,"},{"line_number":180,"context_line":"                        odl_const.ODL_L2GATEWAY_CONNECTIONS, d_res)]])"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"    def test_client_error_propagates(self):"},{"line_number":183,"context_line":"        class TestException(Exception):"}],"source_content_type":"text/x-python","patch_set":8,"id":"7f287b81_d26f68c3","line":180,"range":{"start_line":140,"start_character":0,"end_line":180,"end_character":70},"updated":"2017-08-23 07:37:24.000000000","message":"same comments as before.","commit_id":"1944e47b068d9d87f681e64c650d5f44d0c72dbe"}]}
