)]}'
{"neutron/cmd/sanity/checks.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c7c0913231d7976bed1edf729da269c07d2f605d","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def ovs_vxlan_supported(root_helper, from_ip\u003d\u0027192.0.2.1\u0027, to_ip\u003d\u0027192.0.2.2\u0027):"},{"line_number":32,"context_line":"    name \u003d \"vxlantest-\" + utils.get_random_string(4)"},{"line_number":33,"context_line":"    with ovs_lib.OVSBridge(name, root_helper) as br:"},{"line_number":34,"context_line":"        port \u003d br.add_tunnel_port(from_ip, to_ip, const.TYPE_VXLAN)"},{"line_number":35,"context_line":"        return port !\u003d ovs_lib.INVALID_OFPORT"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_2521844d","line":32,"updated":"2014-12-18 21:58:31.000000000","message":"Why replacing 6 by 4?","commit_id":"d2cd96f4cbaf1aad747878137b740e394637fa1a"}],"neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"88f2b91c5e25a0e5dd037f1f0c535041b2de66a9","unresolved":false,"context_lines":[{"line_number":562,"context_line":"            return False"},{"line_number":563,"context_line":"        return True"},{"line_number":564,"context_line":""},{"line_number":565,"context_line":"    def vxlan_module_supported(self):"},{"line_number":566,"context_line":"        try:"},{"line_number":567,"context_line":"            utils.execute(cmd\u003d[\u0027modinfo\u0027, \u0027vxlan\u0027], log_fail_as_error\u003dFalse)"},{"line_number":568,"context_line":"            return True"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_3c6d1633","side":"PARENT","line":565,"updated":"2015-01-06 00:15:49.000000000","message":"I understand the sanity checks might be a replacement for this, but the current logic has runtime checks which verify whether vxlan is supported regardless of whether the sanity checks are run or not. Perhaps this logic should be preserved.","commit_id":"299f8ad2dc974b19705b91ef2dc81a058e134348"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"01858f9d7b9ca2ba210f80afe04fd612b5f3c8eb","unresolved":false,"context_lines":[{"line_number":562,"context_line":"            return False"},{"line_number":563,"context_line":"        return True"},{"line_number":564,"context_line":""},{"line_number":565,"context_line":"    def vxlan_module_supported(self):"},{"line_number":566,"context_line":"        try:"},{"line_number":567,"context_line":"            utils.execute(cmd\u003d[\u0027modinfo\u0027, \u0027vxlan\u0027], log_fail_as_error\u003dFalse)"},{"line_number":568,"context_line":"            return True"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_37ad2f9c","side":"PARENT","line":565,"in_reply_to":"3a961159_3c6d1633","updated":"2015-01-06 00:41:41.000000000","message":"The idea is that these types of checks should *not* be done at runtime, though. It tends to lead to making fragile checks that don\u0027t fit all distros/use cases instead of just \u0027testing that the feature works\u0027 because doing those tests are usually not appropriate at runtime due to them messing with system state or being fairly expensive.\n\nIt\u0027s hard at runtime to do an acceptable test that handles things like kernel versions, backported features, whether something is static or a module, distro versions, etc.","commit_id":"299f8ad2dc974b19705b91ef2dc81a058e134348"}]}
