)]}'
{"networking_generic_switch/devices/netmiko_devices/dell.py":[{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"57dec85814e3aa6aee5d547832ab8b1373e1eb32","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    @staticmethod"},{"line_number":58,"context_line":"    def _detect_plug_port_failure(raw_output, port, vlan):"},{"line_number":59,"context_line":"        PATTERN \u003d \"Error: .* Port is untagged in another Vlan.\""},{"line_number":60,"context_line":"        match \u003d re.search(PATTERN, raw_output)"},{"line_number":61,"context_line":"        if match:"},{"line_number":62,"context_line":"            raise exc.GenericSwitchPlugPortToNetworkError(port\u003dport,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f91af0f_3f490c30","line":59,"updated":"2018-01-09 16:11:43.000000000","message":"Although this is the most common failure mode, it would be nice if we could catch all errors coming back from the switch. Could we override a more general method, such as send_commands_to_device or send_config_set, and check the output for \u0027Error:\u0027?\n\nE.g.\n\ndef send_config_set(self, net_connect, cmd_set):\n    output \u003d super(DellNos, self).send_config_set(net_connect, cmd_set)\n    # Check output...\n    return output\n\nPerhaps there\u0027s even something that could work for all netmiko device drivers? Thoughts?","commit_id":"c784f3e12f2e2345090903124e9089ac23619ff7"}]}
