def has_ioslike_error(s):
    """Test whether a string seems to contain an IOS-like error."""
    tests = (
        s.startswith('%'),                  # Cisco, Arista
        '\n%' in s,                         # A10, Aruba, Foundry
        'syntax error: ' in s.lower(),      # Brocade VDX, F5 BIGIP
        s.startswith('Invalid input -> '),  # Brocade MLX
        s.endswith('Syntax Error'),         # MRV
    )
    return any(tests)