)]}'
{"networking_odl/qos/qos_driver_v2.py":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"6fb5e2f9c3fe99de78be7b7873c48ff9aac867dc","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"# TODO(manjeets) fetch these from Neutron NB"},{"line_number":29,"context_line":"# Only bandwidth limit is supported so far."},{"line_number":30,"context_line":"SUPPORTED_RULES \u003d {"},{"line_number":31,"context_line":"    qos_consts.RULE_TYPE_BANDWIDTH_LIMIT: {"},{"line_number":32,"context_line":"        qos_consts.MAX_KBPS: {"}],"source_content_type":"text/x-python","patch_set":1,"id":"5ff73747_5339b1a1","line":29,"range":{"start_line":28,"start_character":0,"end_line":29,"end_character":43},"updated":"2017-04-27 15:06:26.000000000","message":"At first, we need to retrieve the supported list of rules from ODL and update this.","commit_id":"ce8239022f7cf90f2616fff64da2826aea4fe5c9"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"8070122a8c1110241fa4c1a35aa7005556057f36","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"# TODO(manjeets) fetch these from Neutron NB"},{"line_number":35,"context_line":"# Only bandwidth limit is supported so far."},{"line_number":36,"context_line":"RULES \u003d {"},{"line_number":37,"context_line":"    \u0027bandwidth_limit\u0027: {"},{"line_number":38,"context_line":"        qos_consts.RULE_TYPE_BANDWIDTH_LIMIT: {"},{"line_number":39,"context_line":"            qos_consts.MAX_KBPS: {"},{"line_number":40,"context_line":"                \u0027type:range\u0027: [0, n_consts.DB_INTEGER_MAX_VALUE]},"},{"line_number":41,"context_line":"            qos_consts.MAX_BURST: {"},{"line_number":42,"context_line":"                \u0027type:range\u0027: [0, n_consts.DB_INTEGER_MAX_VALUE]},"},{"line_number":43,"context_line":"            qos_consts.DIRECTION: {"},{"line_number":44,"context_line":"                \u0027type:values\u0027: [n_consts.EGRESS_DIRECTION]}"},{"line_number":45,"context_line":"        },"},{"line_number":46,"context_line":"    },"},{"line_number":47,"context_line":"    \u0027dscp_marking\u0027: {"},{"line_number":48,"context_line":"        qos_consts.RULE_TYPE_DSCP_MARKING: {"},{"line_number":49,"context_line":"            qos_consts.DSCP_MARK: {\u0027type:values\u0027: n_consts.VALID_DSCP_MARKS}"},{"line_number":50,"context_line":"        }"},{"line_number":51,"context_line":"    }"},{"line_number":52,"context_line":"}"},{"line_number":53,"context_line":"VIF_TYPES \u003d [portbindings.VIF_TYPE_OVS, portbindings.VIF_TYPE_VHOST_USER]"},{"line_number":54,"context_line":"VNIC_TYPES \u003d [portbindings.VNIC_NORMAL]"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1f1a1f67_85d90e23","line":52,"range":{"start_line":36,"start_character":0,"end_line":52,"end_character":1},"updated":"2017-07-18 17:06:05.000000000","message":"Can you please make this configurable?\nBecause netvirt is not only ODL openstack backend. Other backend may support differently.\n\nIn long term, netorking-odl should retrieve supported rule from ODL directly.","commit_id":"26fa70ca22b85d2270fdbe67eb4bb6b04510b221"},{"author":{"_account_id":13912,"name":"rajiv","email":"thenakliman@gmail.com","username":"rajiv.kumar"},"change_message_id":"b2672d33795d1c2c617b200706c0ae3169621d24","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"# TODO(manjeets) fetch these from Neutron NB"},{"line_number":35,"context_line":"# Only bandwidth limit is supported so far."},{"line_number":36,"context_line":"RULES \u003d {"},{"line_number":37,"context_line":"    \u0027bandwidth_limit\u0027: {"},{"line_number":38,"context_line":"        qos_consts.RULE_TYPE_BANDWIDTH_LIMIT: {"},{"line_number":39,"context_line":"            qos_consts.MAX_KBPS: {"},{"line_number":40,"context_line":"                \u0027type:range\u0027: [0, n_consts.DB_INTEGER_MAX_VALUE]},"},{"line_number":41,"context_line":"            qos_consts.MAX_BURST: {"},{"line_number":42,"context_line":"                \u0027type:range\u0027: [0, n_consts.DB_INTEGER_MAX_VALUE]},"},{"line_number":43,"context_line":"            qos_consts.DIRECTION: {"},{"line_number":44,"context_line":"                \u0027type:values\u0027: [n_consts.EGRESS_DIRECTION]}"},{"line_number":45,"context_line":"        },"},{"line_number":46,"context_line":"    },"},{"line_number":47,"context_line":"    \u0027dscp_marking\u0027: {"},{"line_number":48,"context_line":"        qos_consts.RULE_TYPE_DSCP_MARKING: {"},{"line_number":49,"context_line":"            qos_consts.DSCP_MARK: {\u0027type:values\u0027: n_consts.VALID_DSCP_MARKS}"},{"line_number":50,"context_line":"        }"},{"line_number":51,"context_line":"    }"},{"line_number":52,"context_line":"}"},{"line_number":53,"context_line":"VIF_TYPES \u003d [portbindings.VIF_TYPE_OVS, portbindings.VIF_TYPE_VHOST_USER]"},{"line_number":54,"context_line":"VNIC_TYPES \u003d [portbindings.VNIC_NORMAL]"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"df3967d1_891d1175","line":52,"range":{"start_line":36,"start_character":0,"end_line":52,"end_character":1},"in_reply_to":"1f1a1f67_85d90e23","updated":"2017-08-01 05:03:50.000000000","message":"This patch fetches supported rules from networking ODL and updated Accordingly. This mapping is needed because dictionary returned by the ODL and expected by neutron are different therefore this mapping is done. Here key values are what ODL returns.","commit_id":"26fa70ca22b85d2270fdbe67eb4bb6b04510b221"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"8070122a8c1110241fa4c1a35aa7005556057f36","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        global SUPPORTED_RULES"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        if not supported_rules:"},{"line_number":83,"context_line":"            rest_client \u003d client.OpenDaylightRestClientGlobal().get_client()"},{"line_number":84,"context_line":"            try:"},{"line_number":85,"context_line":"                resp \u003d rest_client.sendjson(\u0027get\u0027,"},{"line_number":86,"context_line":"                                            \u0027/v2.0/qos/rule-types\u0027, None)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1f1a1f67_452e56fb","line":83,"range":{"start_line":83,"start_character":12,"end_line":83,"end_character":76},"updated":"2017-07-18 17:06:05.000000000","message":"This can cause subtle issue.\nODL may or may not available when neutron booting.\nSo let\u0027s introduce configuration like odl features.\nIf admin set config explicitly, use it.\nIf no, try to connect ODL forever.","commit_id":"26fa70ca22b85d2270fdbe67eb4bb6b04510b221"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"8070122a8c1110241fa4c1a35aa7005556057f36","unresolved":false,"context_lines":[{"line_number":89,"context_line":"                supported_rules \u003d []"},{"line_number":90,"context_line":"                for rule in resp[\u0027rule_types\u0027]:"},{"line_number":91,"context_line":"                    supported_rules.append(rule[\u0027type\u0027])"},{"line_number":92,"context_line":"            except requests.HTTPError:"},{"line_number":93,"context_line":"                supported_rules \u003d [\u0027bandwidth_limit\u0027]"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"            for rule in supported_rules:"},{"line_number":96,"context_line":"                SUPPORTED_RULES.update(RULES[rule])"}],"source_content_type":"text/x-python","patch_set":3,"id":"1f1a1f67_050dfe8e","line":93,"range":{"start_line":92,"start_character":0,"end_line":93,"end_character":53},"updated":"2017-07-18 17:06:05.000000000","message":"Depending on the order of bootup, we can sometimes have this rule or correct rule from ODL.\nThis will confuses cloud admin.","commit_id":"26fa70ca22b85d2270fdbe67eb4bb6b04510b221"}]}
